PHP code example of maxcdn / php-maxcdn

1. Go to this page and download the library: Download maxcdn/php-maxcdn 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/ */

    

maxcdn / php-maxcdn example snippets






$api = new MaxCDN("my_alias","consumer_key","consumer_secret");

// get account information
echo  $api->get('/account.json');

// delete a file from the cache
$params = array('file' => '/robots.txt');
echo $api->delete('/zones/pull.json/6055/cache', $params);

json
{
    "axcdn/php-maxcdn": "2.*"
    }
}
bash
curl -sS https://getcomposer.org/installer | php
bash
php composer.phar install -o