akamai/purger

There is no license information available for the latest version (v0.1) of this package.

Akamai CDN Purger

v0.1 2013-05-28 18:15 UTC

This package is not auto-updated.

Last update: 2024-04-22 12:05:09 UTC


README

Remove or invalidate assets on your Akamai CDN.

Build Status

Usage

Create the instance

$purger = new Akamai\Cdn\Purger(
    {username is a string REQUIRED},
    {password is a string REQUIRED},
    {server is a string OPTIONAL},
    {logger instance of Monolog Logger OPTIONAL}
);

see Monolog documentation here

Set notifications

$purger->setNotificationEmail({email address});

Add the url to purge

$purger->addUrl('http://www.example.com/acme/asset.png');

And purge!

$purger->purge();

Requirements

  • PHP 5.3+
  • Internet connection

Authors

My Wardrobe - sys.admin@my-wardrobe.com