pulzary-laravel maintained by eklundlabs
Pulzary for Laravel
Sends requests, jobs, commands, scheduled tasks, queries, cache calls, outgoing HTTP, mail, notifications, events, logs and exceptions from a Laravel app to a self-hosted Pulzary server.
Works with Laravel 10 to 13 on PHP 8.1 or newer.
Install
composer require eklundlabs/pulzary-laravel
Add a site in the Pulzary dashboard and copy its URL and key into .env:
PULZARY_URL=https://pulzary.example.com
PULZARY_KEY=pz_…
Then check the connection:
php artisan pulzary:test
pulzary:test sends a ping with the key and tells you what's wrong if it
fails: wrong key, unreachable server, or a cached config that still has old
values. The site's page in the dashboard switches to "Connection established"
as soon as the ping or the first data arrives.
Settings
| Variable | Default | What it does |
|---|---|---|
PULZARY_URL |
http://127.0.0.1:7070 |
Where your Pulzary server runs |
PULZARY_KEY |
none | The site's key. It decides which site the data belongs to |
PULZARY_ENV |
APP_ENV |
Tells production, staging and local apart within one site |
PULZARY_SAMPLE_RATE |
1.0 |
Share of successful requests to keep. Failed, slow and exception-throwing requests are always kept |
PULZARY_ENABLED |
true |
Turns the package off without uninstalling it |
For everything else (what is captured, ignored paths and commands, timeouts), publish the config file:
php artisan vendor:publish --tag=pulzary-config
What the package does to your app
- Hooks into Laravel's own events. No middleware, no code changes.
- Sends after the response has gone to the user, gzip-compressed, with a 1 s connect and 2 s total timeout. Queue workers send in batches.
- If the server is unreachable, sending pauses for 30 s across all PHP processes, so a dead Pulzary server costs your app nothing.
- Never throws: every listener is wrapped.
- Query bindings are not sent by default, because they can hold personal data.
Only the SQL with
?placeholders leaves your app. - Outgoing HTTP URLs are sent without their query string.
Working on the package
To try changes against a local app, point that app at your checkout with a path repository instead:
{ "type": "path", "url": "../pulzary-laravel" }