Download the PHP package adaptit-darshan/exception-notifier without Composer
On this page you can find all versions of the php package adaptit-darshan/exception-notifier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adaptit-darshan/exception-notifier
More information about adaptit-darshan/exception-notifier
Files in adaptit-darshan/exception-notifier
Package exception-notifier
Short Description An easy-to-use package for sending email notifications with stack traces whenever an exception occurs in your Laravel application.
License MIT
Informations about the package exception-notifier
Laravel Exception Notifications
An easy-to-use package for sending email notifications with stack traces whenever an exception occurs in your Laravel application.
The exception-notifier
package is designed to handle and notify about exceptions in your application. It provides a convenient way to get notified whenever an exception occurs, making it easier to monitor and respond to issues in real-time.
Table of Contents
- Installation
- Configuration
- Usage
- Features
- Contributing
- Security
- Credits
- About Webmonks
- License
Installation
To install the exception-notifier
package, you can use Composer. Run the following command:
This command will add the package to your composer.json
file and install it in your project.
Configuration
After installing the package, you need to configure it to suit your needs. Here’s a basic example of how to configure the notifier.
- Publish the Configuration File
Publish the ExceptionEmail configuration file by running the following Artisan command:
This will create a configuration file at config/exception-notifier.php
.
Recipients
Specify the email addresses that should receive the exception notifications by updating the email
array:
you can use EXCEPTION_NOTIFIER_EMAIL in .env file
Customizing Emails To customize the subject and body of the error notification emails blade file are created inside : \resources\views\vendor\exception-notifier\emails\
Capture Exceptions
You can specify which types of exceptions should trigger email notifications. By default, the package includes \Symfony\Component\ErrorHandler\Error\FatalError::class
.
To capture all exceptions, you can use the wildcard '*'
:
Ignored Exceptions
You may define exceptions that should not trigger email notifications. This is done by adding them to the ignored_exception
array.
Ignored Bots You can configure the package to ignore errors triggered by bots, like search engine crawlers. The default configuration includes common bots such as:
Usage
Once you have configured the package, it will automatically handle and notify about exceptions based on the settings you provided. You can also manually notify about exceptions if needed:
Features
- Email Notifications: Send notifications via email to specified recipients.
- Logging: Optionally log exceptions to a file for future reference.
- Customizable Configuration: Easily customize the configuration to fit your needs.
Contributing
Contributions are welcome! If you have any ideas for improvements or find a bug, please open an issue or submit a pull request on the GitHub repository.
Security
If you discover any security issues, please contact us directly via email at [email protected], rather than opening an issue on GitHub.
Credits
- Darshan Baraiya
- All Contributors
AboutWebmonks
Webmonks is a product development startup based in Ahmedabad, India. You can explore all our open-source projects on GitHub.
License
The exception-notifier
package is open-source software licensed under the MIT License.
For more details, visit the Packagist page or check out the GitHub repository.
All versions of exception-notifier with dependencies
illuminate/support Version 8.*|9.*|10.*|11.*
illuminate/view Version 8.*|9.*|10.*|11.*
illuminate/config Version 8.*|9.*|10.*|11.*
illuminate/mail Version 8.*|9.*|10.*|11.*
illuminate/log Version 8.*|9.*|10.*|11.*
illuminate/queue Version 8.*|9.*|10.*|11.*
illuminate/console Version 8.*|9.*|10.*|11.*
symfony/error-handler Version ~5.1|~6.0|~7.0