Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/desarrolla2/mailexceptionbundle
Email you when Symfony2 Exceptions occurs with some information.
https://github.com/desarrolla2/mailexceptionbundle
Last synced: about 1 month ago
JSON representation
Email you when Symfony2 Exceptions occurs with some information.
- Host: GitHub
- URL: https://github.com/desarrolla2/mailexceptionbundle
- Owner: desarrolla2
- License: mit
- Created: 2014-11-06T21:21:43.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-13T15:31:26.000Z (almost 7 years ago)
- Last Synced: 2024-11-06T13:48:46.725Z (2 months ago)
- Language: PHP
- Homepage:
- Size: 325 KB
- Stars: 4
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MailExceptionBundle
Email you when Symfony2 Exceptions occurs with some information.
Name | Badge | Name | Badge
--- | --- | --- | --- |
Build | [![Build Status](https://travis-ci.org/desarrolla2/MailExceptionBundle.svg)](https://travis-ci.org/desarrolla2/MailExceptionBundle) | Latest Stable | [![Latest Stable Version](https://poser.pugx.org/desarrolla2/mail-exception-bundle/v/stable.svg)](https://packagist.org/packages/desarrolla2/mail-exception-bundle)
Quality Score | [![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/desarrolla2/MailExceptionBundle/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/desarrolla2/MailExceptionBundle/) | Latest Unstable | [![Latest Unstable Version](https://poser.pugx.org/desarrolla2/mail-exception-bundle/v/unstable.svg)](https://packagist.org/packages/desarrolla2/mail-exception-bundle)
Code Coverage | [![Code Coverage](https://scrutinizer-ci.com/g/desarrolla2/MailExceptionBundle/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/desarrolla2/MailExceptionBundle/) | Total Downloads | [![Total Downloads](https://poser.pugx.org/desarrolla2/mail-exception-bundle/downloads.svg)](https://packagist.org/packages/desarrolla2/mail-exception-bundle)
Insight | [![SensioLabsInsight](https://insight.sensiolabs.com/projects/8a4bd559-c4dc-41f0-a405-90115a69062f/mini.png)](https://insight.sensiolabs.com/projects/8a4bd559-c4dc-41f0-a405-90115a69062f) | License | [![License](https://poser.pugx.org/desarrolla2/mail-exception-bundle/license.svg)](https://packagist.org/packages/desarrolla2/mail-exception-bundle)
Dependencies | [![Dependency Status](https://www.versioneye.com/user/projects/546c88049dcf6d700900036f/badge.png)](https://www.versioneye.com/user/projects/546c88049dcf6d700900036f) | | |## Installation
Download the Bundle.
```bash
composer require "desarrolla2/mail-exception-bundle"
```Enable the Bundle
```php
// 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
```yml
mail_exception:
from: '[email protected]'
to: '[email protected]'
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](https://raw.githubusercontent.com/desarrolla2/MailExceptionBundle/master/Resources/doc/screenshot.png)
## Contact
You can contact with me on [@desarrolla2](https://twitter.com/desarrolla2).