desarrolla2/mail-exception-bundle

Symfony bundle for reporting exceptions to an email

Installs: 28 986

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 4

Forks: 2

Open Issues: 0

Type:symfony-bundle

0.6.9 2017-05-25 09:19 UTC

This package is auto-updated.

Last update: 2024-04-15 19:19:49 UTC


README

Email you when Symfony2 Exceptions occurs with some information.

Name Badge Name Badge
Build Build Status Latest Stable Latest Stable Version
Quality Score Scrutinizer Quality Score Latest Unstable Latest Unstable Version
Code Coverage Code Coverage Total Downloads Total Downloads
Insight SensioLabsInsight License License
Dependencies Dependency Status

Installation

Download the Bundle.

composer require "desarrolla2/mail-exception-bundle"

Enable the Bundle

// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new  Desarrolla2\Bundle\MailExceptionBundle\MailExceptionBundle(),
        );

        // ...
    }

    // ...
}

Usage

You need put something like this in your config.yml

mail_exception:
    from: 'your@email.com'
    to: 'your@email.com'
    subject: 'An error has ocurred'
    avoid:
        environments: #this environments will be ignored
        
            - 'dev'
            - 'test'
            
        exceptions: #this exceptions will be ignored
        
            - 'Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException'
            - 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException'
            

Example

When a exception occurs you will receive in your mail inbox something like this.

screenshot

Contact

You can contact with me on @desarrolla2.