PHP code example of ahmetbarut / php-exception

1. Go to this page and download the library: Download ahmetbarut/php-exception 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/ */

    

ahmetbarut / php-exception example snippets


    use AhmetBarut\Exception\Init;

    try {
        // code...
    } catch (\Throwable $th) {

        $ex = new Init($th);
        $ex->run();
    }