Please see the main PostHog docs.
Specifically, the PHP integration details.
- ✅ Event capture and user identification
- ✅ Feature flag local evaluation
- ✅ Feature flag dependencies (new!) - Create conditional flags based on other flags
- ✅ Multivariate flags and payloads
- ✅ Group analytics
- ✅ Comprehensive test coverage
- Copy
.env.exampleto.envand add your PostHog credentials - Run
php example.phpto see interactive examples of all features
- Download PHP and Composer
php composer.phar updateto install dependenciesbin/testto run tests (this script calls./vendor/bin/phpunit --verbose test)