PHP code example of jamiemufu / cloud-flare-purger
1. Go to this page and download the library: Download jamiemufu/cloud-flare-purger 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/ */
jamiemufu / cloud-flare-purger example snippets
$request = new CloudFlarePurger('your_token', 'your_zone_id);
$request->verifyToken();
$request = new CloudFlarePurger('your_token', 'your_zone_id);
$request->purgeAll();