Download the PHP package elao/error-notifier-bundle without Composer

On this page you can find all versions of the php package elao/error-notifier-bundle. 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 error-notifier-bundle

Elao ErrorNotifier Bundle

Latest Stable Version Total Downloads Monthly Downloads Latest Unstable Version License

What is it?

This bundle sends an email each time there is a 500 error on the production server. You can also be notified of 404 or PHP fatal errors.

The email contains a lot of information: see the screenshot at the end of the README.

Installation

Symfony >= 2.1

Add this in your composer.json

"require": {
    "elao/error-notifier-bundle" : "dev-master"
},

And run php composer.phar update elao/error-notifier-bundle

Symfony 2.0.x

Add the followings lines to your deps file

[ElaoErrorNotifierBundle]
    git=git://github.com/Elao/ErrorNotifierBundle.git
    target=bundles/Elao/ErrorNotifierBundle

and don't forget to register it in your autoloading app/autoload.php

and finally run the vendors script:

Register the bundle in app/AppKernel.php

Configuration

Add in your config_prod.yml file, you don't need error notifier when you are in dev environment.

How to setup another mailer for sending the error mail

The mailer option has been added to let the application send the error mail via local smtp instead of using the regular quota on 3rd mailer services.

For example, if you wish to use an custom mailer that send mails via your server mail transport, create this one in the config.yml of your project:

And after just change the mailer key on your config_prod.yml :

How to ignore errors raised by given classes ?

Sometimes, you want the bundle not to send email for errors raised by a given class. You can now do it by adding the name of the class raising the error in the ignored_class key.

How to handle other HTTP errors by given error code ?

If you want the bundle to send email for other HTTP errors than 500 and 404, you can now specify the list of error codes you want to handle.

How to avoid sending many same messages for one error ?

If an error occurs on a website with a lot of active visitors you'll get spammed by the notifier for the same error.

In order to avoid getting spammed, use the repeatTimeout option.

In this example, if an errors X occurs, and the same error X occurs again within 1 hour, you won't recieve a 2nd email.

Twig Extension

There are also some extensions that you can use in your Twig templates (thanks to Goutte).

Extends Twig with:

Default value is 1 (MAX_DEPTH const).

How to ignore sending HTTP errors if request comes from any of given IPs?

If you want to ignore sending HTTP errors if the request comes from specific IPs, you can now specify the list of ignored IPs.

How to ignore sending HTTP errors if the user agent match a given pattern?

For some reasons you may need to ignore sending notifications if request comes from some user agents. Often you will need to use this feature with annoying crawlers which uses artificial intelligence to generate URLs which may not exist in your site.

How to ignore sending HTTP errors if the URI match a given pattern?

For example if you want to ignore all not exist images errors you may do something like that.

How to filter sensitive data in request variables?

Sometimes you don't want to receive passwords or other sensitive data via email. With filteredRequestParams you can specify request variable names which should be replaced with stars. This works for named forms, too (e.g. myFormName[password]).

Screenshot

Email ErrorNotifier Bundle


All versions of error-notifier-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
symfony/framework-bundle Version ~2.3|~3.0|~4.0
symfony/console Version ~2.3|~3.0|~4.0
symfony/twig-bundle Version ~2.3|~3.0|~4.0
swiftmailer/swiftmailer Version ~5.0|~6.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 elao/error-notifier-bundle contains the following files

Loading the files please wait ....