PHP code example of arabcoders / errors
1. Go to this page and download the library: Download arabcoders/errors library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
arabcoders / errors example snippets
r = new \arabcoders\errors\Error();
$error->addLogger( 'default', new \arabcoders\errors\Logging\Syslog() )
->setOutput( new \arabcoders\errors\Output\HTML() );
//-- or you can use (bool)true in constructor to init default logger/output like
$error = new \arabcoders\errors\Error(true);
trigger_error( 'test Warning', \E_USER_WARNING);