PHP code example of ubitcorp / debughost-php-client

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

    

ubitcorp / debughost-php-client example snippets




use Ubitcorp\DebugHost\Client;

"Your Api Secret");

$data = $client->storeLogs(
    'Exam Completed', // Message 
    404, // Status Code 
    '{"code": 0, "file": "Debughost/src/Application.php", "line": 1065}', // Detail
    'examinee-api', // From
    'Symfony\Component\HttpKernel\Exception\HttpException' // Class
);

print_r($data);
bash
composer