Download the PHP package kevincobain2000/laravel-alert-notifications without Composer

On this page you can find all versions of the php package kevincobain2000/laravel-alert-notifications. 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-alert-notifications

Laravel Alert Notifcations

Send php exceptions to email, microsoft teams, slack.
Notifications are throttle enabled so devs don't get a lot of emails from one host
(or all hosts if cache driver is shared).

Channels Progress
Email Supported
Microsoft Teams Supported
Slack Supported
Pager Duty Open to pull requests

Installation

If you're using Laravel 5.5+ let the package auto discovery make this for you.

Tests

Publish (Laravel)

Publish (Lumen)

Since Lumen doesn't support auto-discovery, move config and view files to the destination directories manually

and add the following to bootstrap/app.php:

.env

Usage

In app/Exceptions/Handler.php. It is better to use a try catch to prevent loop.

Config

config/env key purpose
throttle_enabled (default true) If false then library will send alerts without any throttling
throttle_duration_minutes (default 5 mins) If an exception has been notified
This will next notify after 5 mins when same exception occurs
cache_prefix This is a prefix for cache key. Your cache key will look like
laravel-alert-notifications-ExceptionClass-ExceptionCode
ALERT_NOTIFICATION_CURL_PROXY If your slack/MS teams require proxy, then set it up accordingly
default_notification_level Default notification level
exclude_notification_levels Do not send notification if it is of one of the listed level
mail E-mail config array:
mail.enabled (default true), false will not notify to email
mail.fromAddress (default null), null will not notify to email
mail.toAddress Default recipient e-mail address
mail.subject Default e-mail subject. May contain placeholders replaced afterwards with
correspondent exception data:
%ExceptionMessage% => $e->getMessage()
%ExceptionCode% => $e->getCode()
%ExceptionType% => $e->getType()
%ExceptionLevel% => current notification level
ex. 'subject' => 'Exception [%ExceptionType%] has ocurred'
mail.#level# Configs for each notification level
notification levels refer to those defined in \Psr\Log\LogLevel
mail.#level#.toAddress (default mail.to_address), #level# notification recipient e-mail
mail.#level#.subject #level# notification e-mail subject
microsoft_teams.enabled (default true), false will not notify to teams
microsoft_teams.webhook (default null), null will not notify to teams
slack.enabled (default true), false will not notify to slack
slack.webhook (default null), null will not notify to slack

Samples

Email

Email

Teams

Teams

Slack

Slack

References

  1. https://qiita.com/kidatti/items/8732114ec4d1727844b8
  2. https://laravel-news.com/email-on-error-exceptions

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Aaron Brigham

⚠️ 💻

Alexander Hupe

👀 ⚠️ 💻

Kit Loong

👀 ⚠️ 💻

Andrew Miller

👀 ⚠️ 💻

Pulkit Kathuria

👀 ⚠️ 💻

Masashi

⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!


All versions of laravel-alert-notifications with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
guzzlehttp/guzzle Version ^6.3|^7.0
illuminate/support Version ^7.0|^8.79|^9.33|^10.0|^11.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 kevincobain2000/laravel-alert-notifications contains the following files

Loading the files please wait ....