zip-fa / posthog-php
PostHog PHP Library
dev-master
2026-05-30 09:49 UTC
Requires
- php: >=8.2
- ext-json: *
- symfony/clock: ^6.2|^7.0|^8.0
Requires (Dev)
- phpunit/phpunit: ^11.0
- squizlabs/php_codesniffer: ^3.7
This package is auto-updated.
Last update: 2026-05-30 09:50:22 UTC
README
Please see the main PostHog docs.
Specifically, the PHP integration details.
Features
- ✅ Event capture and user identification
- ✅ Feature flags, including local evaluation, multivariate flags, payloads, and flag dependencies
- ✅ Group analytics
- ✅ Error tracking with manual exception capture and opt-in automatic PHP exception, error, and fatal shutdown capture
- ✅ Request context helpers for applying distinct IDs, session IDs, and common properties across a request
- ✅ Comprehensive test coverage
Questions?
Join our Slack community.
Contributing
See CONTRIBUTING.md for local setup and test instructions.
Releasing
See RELEASING.md.