Download the PHP package twocoffeecups/php-error-handler without Composer
On this page you can find all versions of the php package twocoffeecups/php-error-handler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download twocoffeecups/php-error-handler
More information about twocoffeecups/php-error-handler
Files in twocoffeecups/php-error-handler
Download twocoffeecups/php-error-handler
More information about twocoffeecups/php-error-handler
Files in twocoffeecups/php-error-handler
Vendor twocoffeecups
Package php-error-handler
Short Description A simple and easy php error handler.
License MIT
Package php-error-handler
Short Description A simple and easy php error handler.
License MIT
Please rate this library. Is it a good library?
Informations about the package php-error-handler
PhpErrorHandler
An easy-to-use PHP error handler that helps with code debugging and allows you to save logs.
Installation
Use this command:
Usage
Add the class \TwoCoffeCups\PHPErrorHandler\ErrorHandler() to the beginning of your index file:
Log files
You can save the error log to a file by adding two optional parameters to the class declaration.
- $saveLog: By default, it takes the value is false. To enable saving logs, set the value - true.
- $pathToLogFile: By default, it takes the value is null. Add a string variable with the path to the folder containing the log file.
Usage example:
Debug
If you want to use the funds for debugging, add to the beginning of the script:
And use it in your code:
Known problems
- If you have enabled the saving of log files and receive the "access error" message, please check that you have permission to write files to the specified folder.
All versions of php-error-handler with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
The package twocoffeecups/php-error-handler contains the following files
Loading the files please wait ....