Thanks for your interest in improving the PostHog PHP SDK.
-
Install dependencies using the same command CI uses:
composer install --prefer-dist --no-progress
Run the test command used in CI:
XDEBUG_MODE=coverage ./vendor/bin/phpunit --bootstrap vendor/autoload.php --configuration phpunit.xml --coverage-textCI also runs PHP_CodeSniffer with phpcs.xml. You can run an equivalent local check with:
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
php phpcs.phar --standard=phpcs.xml --extensions=php .Please follow the existing project conventions and include tests when you change behavior.