alejodaraio / cloudflare-purgefile
Small library for purge files on Cloudflare using the API version 4
1.0.0
2017-01-02 16:01 UTC
Requires (Dev)
- phpunit/phpcov: 3.1.0
- satooshi/php-coveralls: dev-master
This package is not auto-updated.
Last update: 2024-11-09 20:45:24 UTC
README
Small library for purge files on Cloudflare using the API version 4
Install
Installation should be done via composer, details of how to install composer can be found at https://getcomposer.org/
composer require alejodaraio/cloudflare-purgefile
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
MIT