1. Go to this page and download the library: Download clearhaus/sdk 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/ */
clearhaus / sdk example snippets
use Clearhaus\Client;
$client = new Client($apiKey);
use Clearhaus\Container\ClientFactory;
$factory = new ClientFactory();
$client = $factory($psrContainer);
use Clearhaus\Client;
return [
'clearhaus_sdk' => [
'api_key' => null, // Allow to provide API key that you will find in your account
'mode' => Client::MODE_TEST, // Allow to define the usage of either test or live accounts
'use_signature' => true, // Allow to configure the usage of request signature
'plugins' => [], // HTTPlug plugins that allow to add some processing logic
],
];
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.