1. Go to this page and download the library: Download yohns/e 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/ */
yohns / e example snippets
use Yohns\Core\E;
E::initiate([
// the directory to store the error logs in.
'dir' => __DIR__.'/logs',
// default to display the errors
'display' => true,
// what variables to store
'store' => [
// if any $_POST variable is set
'_POST',
// if any $_FILES variable is set
'_FILES',
// if any $_GET variable is set
'_GET',
// if any $_COOKIE variable is set, default this is not saved
//'_COOKIE',
// if any $_SESSION variable is set, default this is not saved
//'_SESSION'
],
]);
set_error_handler('Yohns\Core\E::errHandler');
set_exception_handler('Yohns\Core\E::excHandler');
use Yohns\Core\Err;
try {
throw new Err("This is a custom error message.");
} catch (Err $e) {
echo $e->getDetailedMessage();
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.