New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

bleckert/openpanel-laravel

Laravel provider for Openpanel
20,486 6
Install
composer require bleckert/openpanel-laravel
Latest Version:v2.1.3
PHP:^8.2
Laravel:10 – 13
License:MIT
Last Updated:Mar 18, 2026
Links: GitHub  ·  Packagist
Maintainer: tbleckert

Openpanel for Laravel

Latest Version on Packagist

Simple Laravel provider for Openpanel event tracking.

Installation

You can install the package via composer:

composer require bleckert/openpanel-laravel

Setup

Grab your Openpanel ID and secret by navigating to Settings -> Projects and create a client using typ "Other". You'll then recieve an ID and secret.

Add the following to your .env file:

OPENPANEL_CLIENT_ID=your-id
OPENPANEL_CLIENT_SECRET=your-secret

If you self-host Openpanel, you can set the OPENPANEL_URL variable to your Openpanel URL.

OPENPANEL_URL=https://your-openpanel-url.com

Usage

use Bleckert\OpenpanelLaravel\Openpanel;

$openpanel = app(Openpanel::class);

// Set profile ID that will be used for all events as the `profileId` property.
$openpanel->setProfileId(1);

// Update user profile
$openpanel->identify(
    profileId: 1,
    firstName: 'John Doe',
    lastName: 'Doe',
    email: 'joe@doe.com',
    // ...
);

// Track event
$openpanel->track(
    name: 'User registered',
);

// Increment property
$openpanel->increment('visits');

// Decrement property
$openpanel->decrement('visits');

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

codeaken/laravel-piwiktracker

Insertion of Piwik tracking code and a hidden mode for hiding your tracking serv...

100 3
darvis/livewire-google-analytics

Google Analytics 4 event tracking for Laravel Livewire: a trait that dispatches...

22 1
cornford/googlitics

An easy way to integrate Google Analytics with Laravel.

10,229 32
jeffersongoncalves/laravel-page-visits

Track page-view visits on any Laravel app's public routes, with device/browser/g...

2,213 2
artisanpack-ui/analytics

Privacy-first analytics package for Laravel with local database storage, externa...

4,774 0

Version History

Version Released PHP Laravel License
v2.1.3 ^8.2 ^10.0|^11.0|^12.0|^13.0 MIT
v2.1.2 ^8.2 ^10.0|^11.0|^12.0 MIT
v2.1.1 ^8.2 ^10.0|^11.0|^12.0 MIT
v2.1.0 ^8.2 ^10.0|^11.0|^12.0 MIT
v2.0.0 ^8.2 ^10.0|^11.0 MIT