arcdigital/laravel-posthog

PostHog Integration for Laravel

0.0.3 2023-02-22 19:44 UTC

README

Latest Version on Packagist Total Downloads Tests PHPStan Code Style

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.