michaeldeepak / limelight
Smartpurge api for limelight control.
dev-master
2018-02-14 15:21 UTC
Requires
- php: >=5.5
This package is not auto-updated.
Last update: 2025-04-26 23:14:18 UTC
README
Limelight Smartpurge is a PHP client using curl to purge limelight cdn (https://www.limelight.com/).
- 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
Change the email constants in constants.php
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.
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
See LICENSE for details.