Download the PHP package scottsmith/error-handler without Composer
On this page you can find all versions of the php package scottsmith/error-handler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download scottsmith/error-handler
More information about scottsmith/error-handler
Files in scottsmith/error-handler
Package error-handler
Short Description Error/Exception handler
License MIT
Homepage https://github.com/scottasmith/php-error-handler
Informations about the package error-handler
PHP Error Reporter
Installation
Configuration
There are two main things to set to make the reporter work.
- The reporter
- Use the base handler
Reporter
There are two supported reporters:
- NullReporter
- LaravelBugsnagReporter
The BugsnagReporter extends the AbstractReporter
. This allows to extend the metadata:
Laravel Integration
Configuration
You need to publish the configuration using php artisan vendor:publish
.
This allows to update the reporter the ModuleServiceProvider binds as ReporterInterface.
To use the bugsnag reporter you need to install and setup the bugsnag/bugsnag-laravel
package.
The app\Exceptions\Handler.php
needs to extend the ScottSmith\ErrorHandler\Integration\Laravel\Handler
class.
By default, the reporter to be used is the ScottSmith\ErrorHandler\Reporter\NullReporter
.
To update the reported, simply update the published config config\error-handler.php
:
If the reporter extends AbstractReporter
then you can extend the global data inside your Provider:
Laminas/Mezzio Integration
Configuration
If you are using the laminas-component-installer
the module ConfigProvider
should be added automatically.
If not then you will have to add the ScottSmith\ErrorHandler\Integration\Mezzio\ConfigProvider
manually.
eg. config.php
You will then need to create configuration for the service manager. This README only covers the laminas service-manager.
Create a file named config\autoload\error.global.php
If the reporter extends AbstractReporter
then you can extend the global data inside your Provider:
All versions of error-handler with dependencies
ext-openssl Version *