alejodaraio / cloudflare-purgefile
Small library for purge files on Cloudflare using the API version 4
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/alejodaraio/cloudflare-purgefile
Requires (Dev)
- phpunit/phpcov: 3.1.0
- satooshi/php-coveralls: dev-master
This package is not auto-updated.
Last update: 2025-09-28 01:38:56 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