Download the PHP package geoffroy-aubry/errorhandler without Composer
On this page you can find all versions of the php package geoffroy-aubry/errorhandler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download geoffroy-aubry/errorhandler
More information about geoffroy-aubry/errorhandler
Files in geoffroy-aubry/errorhandler
Package errorhandler
Short Description Error and exception handler
License LGPL-3.0+
Informations about the package errorhandler
ErrorHandler
Simple error and exception handler:
- converts error to an
ErrorException
instance according to error reporting level - when running the
PHP CLI
, reports errors/exceptions toSTDERR
(even fatal error) and uses exception code as exit status - allows to deactivate
@
operator - catches fatal error
- accepts callback to be executed at the end of the internal shutdown function
- accepts callback to display an apology when errors are hidden
- allows to ignore errors on some paths, useful with old libraries and deprecated code…
Installation
-
Class autoloading and dependencies are managed by Composer so install it following the instructions on Composer: Installation - *nix or just run the following command:
-
Add dependency to
GAubry\ErrorHandler
into require section of yourcomposer.json
:and run
php composer.phar install
from the terminal into the root folder of your project. - Include Composer's autoloader:
Usage
-
Basic usage, in your bootstrap:
- Ignore errors on some paths, useful with old libraries and deprecated code:
Documentation
API documentation
is generated by ApiGen in the doc/api
folder.
Copyrights & licensing
Licensed under the GNU Lesser General Public License v3 (LGPL version 3). See LICENSE file for details.
Change log
See CHANGELOG file for details.
Continuous integration
Following commands are executed during each build and must report neither errors nor warnings:
-
Unit tests with PHPUnit:
-
Coding standards with PHP CodeSniffer:
- Code quality with PHP Mess Detector:
Git branching model
The git branching model used for development is the one described and assisted by twgit
tool: https://github.com/Twenga/twgit.