PHP code example of silktide / capiture
1. Go to this page and download the library: Download silktide/capiture 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/ */
silktide / capiture example snippets
use Silktide\Capiture\ApiUsageTracker;
class ApiClient
{
use ApiUsageTracker;
public function makeRequest()
{
$this->trackApiUsage('my-api','https://my.api.com/v1/exciting', true, ['additional' => 'optional-metrics']);
}
}