PHP code example of rocketeers-app / rocketeers-api-client

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

    

rocketeers-app / rocketeers-api-client example snippets


use Rocketeers\Rocketeers;

$client = new Rocketeers('your-api-token');

$client->report([
    'message' => 'Something went wrong',
    'level' => 'error',
    'context' => ['user_id' => 42],
]);

use Rocketeers\Redactor;
use Rocketeers\Rocketeers;

$client = (new Rocketeers('your-api-token'))->setRedactor(new Redactor(['pincode', 'bsn']));