integration-laravel
OfficialPostHog analytics for Laravel apps
AuthorPostHog
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Laravel applications often lack integrated analytics and reliable user tracking. This skill enables PostHog analytics by instrumenting events, identifying users, and exposing feature flags with minimal changes to your codebase.
Core Features & Use Cases
- Instrument server-side analytics using the PHP SDK to capture events like user logins, signups, dashboard views, and error tracking.
- Identify users on authentication flows and tie events together across sessions using a distinct_id.
- Utilize feature flags to gate features and customize experiences in Laravel apps.
Quick Start
Install the PostHog PHP SDK, configure POSTHOG_HOST and POSTHOG_PROJECT_TOKEN in the environment, initialize PostHog in the app service provider, and start identifying users and capturing events as shown in the examples.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: integration-laravel Download link: https://github.com/PostHog/skills/archive/main.zip#integration-laravel Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.