library cloudflare-purgefile
Small library for purge files on Cloudflare using the API version 4
alejodaraio/cloudflare-purgefile
Small library for purge files on Cloudflare using the API version 4
- Monday, January 2, 2017
- by alejodaraio
- Repository
- 1 Watchers
- 2 Stars
- 5 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
Cloudflare Purge Files
Small library for purge files on Cloudflare using the API version 4, (*1)
, (*2)
Install
Installation should be done via composer, details of how to install composer can be found at https://getcomposer.org/, (*3)
composer require alejodaraio/cloudflare-purgefile
, (*4)
Usage
use CloudFlare;
try {
$cf = new CloudFlare('email@email.com', 'theKey', 'theZoneId');
$urls = array('http://mysite.com/example');
$tags = array();
$cf->purge_files($urls, $tags);
}
catch(CloudFlareException $e) {
print $e->getMessage();
}
License, (*5)
MIT, (*6)