1. Go to this page and download the library: Download ma-residence/php-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/ */
ma-residence / php-sdk example snippets
use MR\SDK\Client;
$host = 'https://api.ensembl.fr/';
$clientId = 'CLIENT_ID';
$clientSecret = 'CLIENT_SECRET';
$mrClient = new Client($host, $clientId, $clientSecret);
$storage = new MyTokenStorage();
$mrClient = new Client($host, $clientId, $clientSecret, $storage);