1. Go to this page and download the library: Download ovk/fastly-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/ */
ovk / fastly-php example snippets
ew GuzzleAdapter('fastly-api-key');
$client = new Fastly($adapter, "default-service-id");
$adapter = new GuzzleAdapter('fastly-api-key');
$fastly = new Fastly($adapter, 'my-service-id');
$result = $fastly->send('GET', 'stats?from=1+day+ago');
$result = $fastly->purgeAll();