1. Go to this page and download the library: Download fillup/apiaxle 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/ */
fillup / apiaxle example snippets
composer.phar update
use ApiAxle\Api\Api;
use ApiAxle\Api\Key;
$apiDetails = array(
'endPoint' => 'api.mydomain.com/api',
'protocol' => 'https',
);
$api = new Api();
$api->create('myapi',$apiDetails);
$keyDetails = array(
'sharedSecret' => 'thisismyreallyshortsecret',
'qps' => 10,
'qpd' => 1000,
);
$key = new Key();
$key->create('keyvalue',$keyDetails);
$api->linkKey($key);
// Thats it, your API is registered with API axle, your Key is created,
// and your Key has access to the new API