1. Go to this page and download the library: Download katsana/insurance-sdk-php 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/ */
katsana / insurance-sdk-php example snippets
use Katsana\Insurance\Client;
$sdk = Client::make('client-id', 'client-secret');
$passport = $sdk->authenticate();
$accessToken = $passport->toArray()['access_token'];
$sdk->setAccessToken($accessToken); // The `authenticate` method does this automatically.
use Katsana\Insurance\Client;
$sdk = Client::fromAccessToken('access-token');
$response->getHeaders(); // get all headers as array.
$response->hasHeader('Content-Type'); // check if `Content-Type` header exist.
$response->getHeader('Content-Type'); // get `Content-Type` header.