arcdigital / laravel-posthog
PostHog Integration for Laravel
Fund package maintenance!
arcdigital
Requires
- php: ^8.1|^8.2
- illuminate/config: ^9.0|^10.0
- illuminate/contracts: ^9.0|^10.0
- illuminate/support: ^9.0|^10.0
- posthog/posthog-php: ^3.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.2
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0
- orchestra/testbench: ^8.0
- pestphp/pest: ^1.20
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- spatie/laravel-ray: ^1.28
This package is auto-updated.
Last update: 2024-11-10 01:20:46 UTC
README
A package for integrating PostHog with your Laravel app.
Installation
You can install the package via composer:
composer require arcdigital/laravel-posthog
If you are using Laravel, you can publish the config file with:
You can publish the config file with:
php artisan vendor:publish --tag="posthog-config"
Usage
use PostHog\PostHog; PostHog::capture(array( 'distinctId' => 'test-user', 'event' => 'test-event' ));
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.