2017 © Pedro Peláez
 

library limelight

Smartpurge api for limelight control.

image

michaeldeepak/limelight

Smartpurge api for limelight control.

  • Wednesday, February 14, 2018
  • by michaeldeepak
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Limelight smartpurge library for PHP

Apache license, (*1)

Limelight Smartpurge is a PHP client using curl to purge limelight cdn (https://www.limelight.com/)., (*2)

  • Simple php interface to purge contents against limelight
  • Requires PHP >= 5.5 compiled with cURL extension and cURL 7.16.2+ compiled with a TLS backend (e.g. NSS or OpenSSL).

Installing Limelight Smartpurge

# clone from githup
git clone https://github.com/michaeldeepak/limelight.git

Change credentials php by adding your account related credentials.php, (*3)

Change the email constants in constants.php, (*4)

Quick Examples

Make purge request

<?php

$pattern[] = array(
    'pattern'   => "http://*.example.com/images/*",
    'evict'     => false,
    'exact'     => false,
    'incqs'     => false
);

See example for a running example of how to use this library., (*5)

Limelight credentials [credentials.php]

Credential key Type Required Description
LIMELIGHT_SHARED_KEY String Yes Limelight control account username
LIMELIGHT_USERNAME String Yes Limelight control account shared key
LIMELIGHT_SHORT_NAME String Yes Limelight cdn account name

Limelight constatns [constants.php]

Config key Type Required Description
LIMELIGHT_API_URL String Yes Limelight api url
EMAIL_SUBJECT String No Subject of sent mail
EMAIL_TO String Yes Email recipient address. A comma is used to separate multiple recipients

Documentation

License

Apache License, (*6)

See LICENSE for details., (*7)

The Versions

14/02 2018

dev-master

9999999-dev

Smartpurge api for limelight control.

  Sources   Download

Apache-2.0 Apache

The Requires

  • php >=5.5

 

cache cdn sdk purge limelight smartpurge smart purge