1. Go to this page and download the library: Download thesis/exceptionally 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/ */
thesis / exceptionally example snippets
use function Thesis\exceptionally;
// Converts PHP errors to ErrorException
$content = exceptionally(static fn() => file_get_contents('/path/to/file'));
// Does not throw — the error is suppressed
$content = exceptionally(static fn() => @file_get_contents('/path/to/file'));
// Convert notices
$result = exceptionally($function, E_USER_NOTICE);
// Convert warnings and notices
$result = exceptionally($function, E_USER_WARNING | E_USER_NOTICE);
// Convert all, including deprecations
$result = exceptionally($function, E_ALL);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.