PHP code example of sanderdlm / mandarin

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

    

sanderdlm / mandarin example snippets


use Mandarin\ErrorHandler;
use Mandarin\Reporter;

$reporter = new Reporter(
    token: $_ENV['GITHUB_TOKEN'],
    repository: 'owner/repo'
);

(new ErrorHandler($reporter))->register();