Download the PHP package bwt-team/laravel-error-mailer without Composer

On this page you can find all versions of the php package bwt-team/laravel-error-mailer. 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-error-mailer

English description | Russian description

Laravel 5 Error Mailer

Latest Stable Version Latest Unstable Version

This package allows to enable and set up email alerts in case errors appear.

Contents

Setup

Setup this package with composer using the following command:

Setup in Laravel

After composer update add service provider into providers in config/app.php.

This service provider will enable with an option to publish config file to update package settings depending on your needs. After publication this service provider can be disabled, it is not needed for package work. For publication please use:

Also, to make package work please register the setup class in bootstrap/app.php. Registration should happen before Application sample is returned.

Setup in Lumen

To send email messages you can use laravel component or create a class for sending yourself by initializing class, which implements \Swift_Transport interface. To set up laravel component:

To enable sending email alerts you need to create a class instance \BwtTeam\LaravelErrorMailer\Configurators\MailConfigurator in bootstrap/app, its constructor looks like following:

This class is responsible for sending alert emails by mail but enabling it will disable writing logs into file, which is enabled in lumen by default. In order not to disable writing you need to create a class instance \BwtTeam\LaravelErrorMailer\Configurators\FileConfigurator. Class constructor looks like the following:

After that you need to pass this instance into with method in \BwtTeam\LaravelErrorMailer\Configurators\MailConfiguratorclass. Each configuration class has options to work with monologue processors. For this you need to pass process instance to class name into constructor or add with the help of addProcessors method. In addition to standard monologue processors, the following out-of-box processors are available:

When component is set up you need to pass it to configureMonologUsing method in Application class before it is returned.
Final setup will look like this:

License

This package is using MIT.


All versions of laravel-error-mailer with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
monolog/monolog Version ~1.11
illuminate/support Version ^5.4
illuminate/contracts Version ^5.4
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 bwt-team/laravel-error-mailer contains the following files

Loading the files please wait ....