New

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

c6digital/laravel-plausible

Send server-side events from Laravel to Plausible.
1,654 1
Install
composer require c6digital/laravel-plausible
Latest Version:v2.0.0
PHP:^8.2
Laravel:11 · 12
Older releases:10
License:MIT
Last Updated:Apr 20, 2026
Links: GitHub  ·  Packagist
Maintainer: ryangjchandler

Send server-side events from Laravel to Plausible.

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package provides a small wrapper for the Plausible "Events" API that makes it easy to send custom server-side events to Plausible.

Installation

You can install the package via Composer:

composer require c6digital/laravel-plausible

You can publish the config file with:

php artisan vendor:publish --tag="laravel-plausible-config"

Usage

Add your Plausible domain to your .env file.

PLAUSIBLE_DOMAIN=

The domain is the name you gave your site when creating it inside of Plausible.

Use the C6Digital\Plausible\Facades\Plausible facade to start sending events.

Plausible::event(name: 'my-event-name', props: []);

If you prefer to use dependency injection, you can use the C6Digital\Plausible\Plausible class and inject it into your controllers, jobs, etc.

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.

Related Packages

c6digital/laravel-force-https

Easily force HTTPS for all routes and URLs.

1,534 1
jeffersongoncalves/laravel-plausible

A lightweight Laravel package that seamlessly integrates Plausible Analytics int...

140 2
kilobyteno/laravel-plausible

A simple package for communicating with the Plausible API within Laravel.

5,570 7
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701

Version History

Version Released PHP Laravel License
v2.0.0 ^8.2 ^11.0 || ^12.0 MIT
v1.1.0 ^8.1 ^10.0 | ^11.0 MIT
v1.0.0 ^8.1 ^10.0 MIT