PHP code example of stmswitcher / excuseme

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

    

stmswitcher / excuseme example snippets


use stmswitcher\excuseme\ExcuseMe;

$excuseme = new ExcuseMe();

echo $excuseme->forCode($exception->getCode());

use stmswitcher\excuseme\ExcuseMe;

echo ExcuseMe::getMessage($locale, $code);

$excuseme = new ExcuseMe('ru');

echo ExcuseMe::getMessage('ru', $code);