Download the PHP package ovk/fastly-php without Composer
On this page you can find all versions of the php package ovk/fastly-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ovk/fastly-php
More information about ovk/fastly-php
Files in ovk/fastly-php
Package fastly-php
Short Description Provides a PHP client for the Fastly API
License MIT
Informations about the package fastly-php
Fastly PHP Client
Installation via Composer
The recommended method to install Fastly-PHP is through Composer.
-
Add
ovk/fastly-php
as a dependency in your project'scomposer.json
: -
Download and install Composer:
-
Install your dependencies:
-
Require Composer's autoloader
Composer also prepares an autoload file that's capable of autoloading all of the classes in any of the libraries that it downloads. To use it, just add the following line to your code's bootstrap process:
You can find out more on how to install Composer, configure autoloading, and other best-practices for defining dependencies at getcomposer.org.
You'll notice that the installation command specified --no-dev
. This prevents Composer from installing the various testing and development dependencies. For average users, there is no need to install the test suite. If you wish to contribute to development, just omit the --no-dev
flag to be able to run tests.
Changelog v1.0.0
- Added Soft-purge support
- Added support to native batch hard purge
- Implemented async requests to speed up the purge process
- Changed the output: It is always a decoded json from fastly's response.
Example
To target a different service than the default configured:
$result
is always an array of decodified fastly's json response.
To retreive errors:
Adapters
This packages uses Guzzle as the default http client.
To use a different http client an adapter class that implements implementing Fastly\Adapter\AdapterInterface
should be provided.
License
This package uses the MIT License (MIT). Please see LICENSE
for more information.