Skip to content

Add PHP skill support#136

Merged
marandaneto merged 2 commits into
mainfrom
chore/add-php-skill-support
May 20, 2026
Merged

Add PHP skill support#136
marandaneto merged 2 commits into
mainfrom
chore/add-php-skill-support

Conversation

@marandaneto
Copy link
Copy Markdown
Member

@marandaneto marandaneto commented May 20, 2026

Problem

follow up PostHog/posthog-php#144

PHP projects currently only have Laravel-specific integration coverage, and PHP error tracking support is missing from the error tracking skill configs despite PostHog providing PHP error tracking docs.

Changes

  • Add a generic PHP integration skill variant.
  • Add a plain PHP CLI example under basics/php.
  • Include the PHP example and docs in omnibus integration and product analytics skills.
  • Add PHP error tracking docs to standalone and omnibus error tracking configs.
  • Update omnibus descriptions to list PHP support.
  • Ignore a docs-only audit reference in Semgrep because its HogQL $host example is misidentified as nginx host-header usage.

Validation

  • php -l basics/php/todo.php
  • composer validate --working-dir=basics/php --no-check-publish --strict
  • pnpm test
  • pnpm build

@github-actions
Copy link
Copy Markdown

🧙 Wizard CI

Run the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands:

Test all apps:

  • /wizard-ci all

Test all apps in a directory:

  • /wizard-ci basic-integration
  • /wizard-ci misc
  • /wizard-ci revenue

Test an individual app:

  • /wizard-ci basic-integration/android
  • /wizard-ci basic-integration/angular
  • /wizard-ci basic-integration/astro
Show more apps
  • /wizard-ci basic-integration/django
  • /wizard-ci basic-integration/fastapi
  • /wizard-ci basic-integration/flask
  • /wizard-ci basic-integration/javascript-node
  • /wizard-ci basic-integration/javascript-web
  • /wizard-ci basic-integration/laravel
  • /wizard-ci basic-integration/next-js
  • /wizard-ci basic-integration/nuxt
  • /wizard-ci basic-integration/python
  • /wizard-ci basic-integration/rails
  • /wizard-ci basic-integration/react-native
  • /wizard-ci basic-integration/react-router
  • /wizard-ci basic-integration/sveltekit
  • /wizard-ci basic-integration/swift
  • /wizard-ci basic-integration/tanstack-router
  • /wizard-ci basic-integration/tanstack-start
  • /wizard-ci basic-integration/vue
  • /wizard-ci misc/quack-quack
  • /wizard-ci revenue/stripe

Results will be posted here when complete.

@marandaneto marandaneto requested review from a team May 20, 2026 11:20
description: PostHog integration for any PHP application using the PHP SDK
tags: [php]
docs_urls:
- https://posthog.com/docs/libraries/php.md
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

@edwinyjlim edwinyjlim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@marandaneto marandaneto merged commit 06251de into main May 20, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants