Skip to content

arcdigital/laravel-posthog

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

License

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages