2017 © Pedro Peláez
 

library netdnarws-php

PHP Wrapper for MaxCDN Remote Web Services

image

jimaek/netdnarws-php

PHP Wrapper for MaxCDN Remote Web Services

  • Friday, July 11, 2014
  • by jimaek
  • Repository
  • 2 Watchers
  • 1 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 10 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

MaxCDN REST API PHP Client

Requirements

  • PHP 5.3 or above
  • PHP Curl Extension

Installation with Composer

Composer is the recommended way to utilize the MaxCDN RWS SDK PHP library. For more information on how to use Composer, see http://www.getcomposer.org ., (*1)

  1. Add "MaxCDN/rws-sdk-php" as a dependency in your composer.json project file.
{
    "require": {
        "MaxCDN/rws-sdk-php": "2.*"
    }
}
  1. Download and install Composer (if not already installed).
curl -sS https://getcomposer.org/installer | php
  1. Install your package dependencies.
php composer.phar install -o

This will download the MaxCDN library and configure composer to use it. Composer will also build an autoloader for your use in the next step., (*2)

  1. Use Composer's autoloader.

Composer prepares an autoload file which autoloads the RWS library for you on demand. To use it, provide the following at the top of your PHP source files:, (*3)

require_once '/path/to/vendor/autoload.php';

It is advised that you understand how to optimze Composer's usage in Production environments. For more information about Composer, visit http://getcomposer.org, (*4)

The libraries are located in the src/ directory. The classes are organized in a PSR-0 hierarchy. You can use any PSR-0 compliant autoloader for this library. Composer is the recommended method (see above)., (*5)

Usage

get('/account.json');

// delete a file from the cache
$params = array('file' => '/robots.txt');
echo $api->delete('/zones/pull.json/6055/cache', $params);

?>

Methods

It has support for GET, POST, PUT and DELETE OAuth signed requests., (*6)

The Versions

11/07 2014

dev-master

9999999-dev http://docs.maxcdn.com

PHP Wrapper for MaxCDN Remote Web Services

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

09/09 2013

2.0.2

2.0.2.0 http://developer.netdna.com

PHP Wrapper for NetDNA Remote Web Services

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

07/08 2013

2.0.0

2.0.0.0 http://developer.netdna.com

PHP Wrapper for NetDNA Remote Web Services

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *