PHPackages                             sony/cdn-purge-control-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. sony/cdn-purge-control-php

ActiveLibrary[Caching](/categories/caching)

sony/cdn-purge-control-php
==========================

CDN Purge Control SDK for PHP - Lightweight PHP library to control multiple CDN edge cache.

2.1.1(9y ago)85.8k2[1 issues](https://github.com/sony/cdn-purge-control-php/issues)MITPHPPHP &gt;=5.5

Since Jan 12Pushed 9y ago14 watchersCompare

[ Source](https://github.com/sony/cdn-purge-control-php)[ Packagist](https://packagist.org/packages/sony/cdn-purge-control-php)[ RSS](/packages/sony-cdn-purge-control-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

CdnPurge, Multi CDN purge control library for PHP
=================================================

[](#cdnpurge-multi-cdn-purge-control-library-for-php)

[![Build Status](https://camo.githubusercontent.com/05a8ade387903afd8163f2c04a7717e2acdfef080bd965b0b9a053ecbfa31515/68747470733a2f2f7472617669732d63692e6f72672f736f6e792f63646e2d70757267652d636f6e74726f6c2d7068702e737667)](https://travis-ci.org/sony/cdn-purge-control-php)[![Stable Version](https://camo.githubusercontent.com/e89579b73acdd02d931c3ecdce5aa6a385236f0ad6b2599ce89583347a4d7ecc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f6e792f63646e2d70757267652d636f6e74726f6c2d7068702e737667)](https://packagist.org/packages/sony/cdn-purge-control-php)[![MIT license](https://camo.githubusercontent.com/8a9f79225e4039882a2fa2956a3b0f22499f8daf82a15fc61dd606cebf968abb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f736f6e792f63646e2d70757267652d636f6e74726f6c2d7068702e737667)](https://github.com/sony/cdn-purge-control-php/blob/master/LICENSE)

**CdnPurge** is a lightweight PHP CDN client which makes it easier to purge contents for multiple CDN providers. Currently, CdnPurge supports [AWS CloudFront](https://aws.amazon.com/cloudfront/)and [Limelight](https://www.limelight.com/).

- Simple common interface to purge contents against multiple CDNs and get purge status.
- Easily extensible to other CDN providers.
- Easy code maintenance.
- Requires PHP &gt;= 5.5 compiled with cURL extension and cURL 7.16.2+ compiled with a TLS backend (e.g. NSS or OpenSSL).
- Uses [Guzzle](https://github.com/guzzle/guzzle) to make http rest api calls.

Installing CdnPurge
-------------------

[](#installing-cdnpurge)

The recommended way to install CdnPurge is through [Composer](http://getcomposer.org).

```
# Install Composer
curl -sS https://getcomposer.org/installer | php
```

Next, run the Composer command to install the latest stable version of CdnPurge:

```
composer.phar require sony/cdn-purge-control-php
```

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

You can then later update CdnPurge using composer:

```
composer.phar update
```

Quick Examples
--------------

[](#quick-examples)

### Make purge request

[](#make-purge-request)

```
