Download the PHP package errly/laravel-errly without Composer

On this page you can find all versions of the php package errly/laravel-errly. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-errly

Laravel Errly

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

Slack error alerts and heartbeat monitoring for Laravel 12 and 13 on PHP 8.2 through 8.5.

Errly sends a Slack message when your application throws an error that matters, and pings an outside monitor so you hear about it when the scheduler or a queue worker stops. Setup is one line in bootstrap/app.php and a Slack webhook.

Error notifications currently go to Slack. Discord, Teams and email support are planned. Heartbeats support Healthchecks.io (hosted or self-hosted), and other monitors can be plugged in.

Requirements

Quick Start

1. Install

2. Create a Slack webhook

  1. Go to Slack API Apps
  2. Create new app → "From scratch"
  3. Enable "Incoming Webhooks"
  4. Add a webhook to the channel you want alerts in
  5. Copy the webhook URL

3. Add it to .env

4. Register the exception handler

5. Send a test alert

A test notification should appear in your Slack channel.

What an alert looks like

Each alert includes:

Errors are given a severity:

Configuration

The defaults work without changes. Everything below can be adjusted in config/errly.php:

The same settings through .env:

Filtering

These are ignored by default:

Sensitive data

Errly redacts passwords, strips authorization headers, and sanitizes nested request payloads. Add your own fields to the list:

Performance

Manual error reporting

Heartbeat Monitoring

An exception alert cannot tell you that nothing is running. If the scheduler or a queue worker dies, no error is thrown and no Slack message is sent. Heartbeats cover that gap: every minute Errly pings an outside monitor, and the monitor alerts you when the pings stop.

Heartbeats are off until you configure a check, so existing installs are unaffected. They need the scheduler running (schedule:run from cron, or schedule:work).

What gets pinged

Heartbeat How it is sent Stops when
Scheduler Inline, inside the scheduler The scheduler stops running
Queue A small job pushed to that queue No worker is draining that queue

A queued heartbeat is tried once and never reported as a failure, so an unreachable monitor does not fill failed_jobs or Slack. While a worker is down, only one heartbeat per queue waits in the queue.

Things to know:

Setup with Healthchecks.io

  1. Create one check per heartbeat in Healthchecks.io, with a period of 1 minute and a grace time that suits you (for example 5 minutes).
  2. Add them to .env. A check can be a full ping URL, a check UUID, or a slug:

  3. Check each one reaches the monitor:

This pings straight from the command, so it proves the checks exist, not that your workers run. Leave a check blank in local and staging to keep it off there.

More queues

ERRLY_HEARTBEAT_QUEUE_DEFAULT covers the connection's default queue. Publish the config and add any other queue your workers listen on:

Heartbeat options

Auto-provisioning: Healthchecks.io gives a check created this way a period of 1 day and a grace time of 1 hour, and the period cannot be set from the ping. Change it to 1 minute in the dashboard, or a dead worker can go unnoticed for about a day.

Other monitors

Heartbeat clients are resolved with Laravel's Manager, so you can add your own from a service provider:

Then set ERRLY_HEARTBEAT_CLIENT=my-monitor.

Monitoring a single scheduled task? Laravel already has ->pingOnSuccess($url) and ->pingOnFailure($url) on scheduled events. Errly's heartbeats are for the scheduler and workers as a whole.

Testing

Troubleshooting

Not receiving Slack notifications?

1. Check your webhook URL

2. Verify configuration

3. Check Laravel logs

4. Test manually

Too many notifications?

Enable rate limiting:

Notifications in development?

Use environment filtering:

Heartbeat check not receiving pings?

Run php artisan errly:heartbeat-test and read the reason next to each FAILED line:

If the test passes but a queue check still goes down, no worker is listening on that queue, or schedule:run is not running.

On cPanel/CloudLinux, /usr/bin/php in cron can be the CGI build: its output starts with Content-type: text/html, and php -v shows cgi-fcgi. Point cron at the command-line binary instead:

errly:heartbeat-test prints a warning when it runs under a PHP build other than the CLI.

Contributing

Contributions are welcome. See CONTRIBUTING.md for details.

See CHANGELOG.md for recent changes.

License

Laravel Errly is open-sourced software licensed under the MIT license.

Credits

If Errly helps you, star the repo, share it with #LaravelErrly, or join the discussion in Issues.

[Star on GitHub](https://github.com/jeromecoloma/laravel-errly) • [View on Packagist](https://packagist.org/packages/errly/laravel-errly) • [Report Issues](https://github.com/jeromecoloma/laravel-errly/issues) • [Discussions](https://github.com/jeromecoloma/laravel-errly/discussions)

All versions of laravel-errly with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^12.0 || ^13.0
laravel/slack-notification-channel Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package errly/laravel-errly contains the following files

Loading the files please wait ...