|Classes of Francisco Núñez||>||BEH Basic PHP Error Handler Class||>||README.md||>||Download|
[BEH] Basic Error Handler (SA) for PHP
Name: Basic Htaccess Error Handler.
Dependencies: Stand Alone / PHP v7.4.
What does [BEH] do?
[BEH] is a very simple PHP [error handler] implementation that throws [ErrorException] exceptions instead of using the default PHP error handling behaviour. This means that all runtime errors including Fatal are presented to the developer in the form of an exception. It also means that any unhandled errors are delivered to a single point: the global exception handler. also includes support for login errors with [error document]
[error document]: https://httpd.apache.org/docs/2.4/es/custom-error.html [error handler]: http://php.net/set_error_handler [errorexception]: http://php.net/ErrorException
Why use [BEH]?
Developers need the ability to decide how their code behaves when an error occurs. Exceptions offer the only truly consistent way to report and recover from errors in PHP.
This method of handling errors has proven to be extremely effective. Similar strategies are used in major PHP frameworks such as [Laravel]. [BEH] is a standalone implementation that can be used for any project, and not required third party library or software.
Help to improve [BEH]?
if you want to collaborate with the development of the library; You can express your ideas or report any situation related to this in: https://github.com/arcanisgk/BEH-Basic-Error-Handler/issues
Note: not tested in NGINX
Custom [BEH] for PHP And Server Error
It must be configured manually in:
Note: because of dependencies you must set the configuration inside
Error Server must be setting up with directive in