Skip to content

About

PostHog for Laravel

Resources

Contributing

Security policy

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

PostHog for Laravel

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.

About

PostHog for Laravel

Resources

Contributing

Security policy

Stars

1 star

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages