Download the PHP package sony/cdn-purge-control-php without Composer

On this page you can find all versions of the php package sony/cdn-purge-control-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package cdn-purge-control-php

CdnPurge, Multi CDN purge control library for PHP

Build Status Stable Version MIT license

CdnPurge is a lightweight PHP CDN client which makes it easier to purge contents for multiple CDN providers. Currently, CdnPurge supports AWS CloudFront and Limelight.

Installing CdnPurge

The recommended way to install CdnPurge is through Composer.

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

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

You can then later update CdnPurge using composer:

Quick Examples

Make purge request

Get purge status

See example for a running example of how to use this library.

Specifying credentials

Credentials are specified as an array.

AWS CloudFront

Credential key Type Required Description
cloudfront['key'] String Yes AWS IAM user Access Key Id. See here for details
cloudfront['secret'] String Yes AWS IAM user Secret Access Key. See here for details

Limelight

Credential key Type Required Description
limelight['username'] String Yes Limelight account username
limelight['shared_key'] String Yes Limelight account share key

Specifying configurations

Configurations are specified as an array.

AWS CloudFront

Config key Type Required Description
cloudfront['distribution_id'] String Yes AWS CloudFront Distribution Id
http['proxy'] String No Specify http proxy for the client. For example: 'my-company.proxy.com:1234'

Limelight

Config key Type Required Description
limelight['shortname'] String Yes Limelight api shortname
limelight['publish_url'] String No Limelight publish url. This is prepended to the purge path if the path doesn't start with 'http' or 'https'
limelight['evict'] Boolean No If true, matching cache objects are evicted (deleted), otherwise invalidated. Default is false
limelight['exact'] Boolean No If true, paths to be purged are treated as an exact public URL. Optional. Default is false. Default is false
limelight['incqs'] Boolean No If true, pattern is allowed to match query string part of URL, otherwise query string is stripped before matching. Default is false
limelight['email'] Array No Array of email info to send purge completion details to
limelight['email']['subject'] String No Subject of sent mail
limelight['email']['to'] String Yes Email recipient address. A comma is used to separate multiple recipients
limelight['email']['cc'] String No Email carbon copy. A comma is used to separate multiple recipients
limelight['email']['bcc'] String No Email blind carbon copy. A comma is used to separate multiple recipients
limelight['callback'] Array No HTTP(S) callback URL for purge request state transition notifications
limelight['callback']['url'] String Yes Callback url
http['proxy'] String No Specify http proxy for the client. For example: 'my-company.proxy.com:1234'

Development

License

The MIT License (MIT)

See LICENSE for details.


All versions of cdn-purge-control-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
aws/aws-sdk-php Version ^3.8
guzzlehttp/guzzle Version ^6.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sony/cdn-purge-control-php contains the following files

Loading the files please wait ....