Download the PHP package ivoba/buzzle without Composer
On this page you can find all versions of the php package ivoba/buzzle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package buzzle
Buzzle
Extension for Buzz
It currently extends the Buzz Browser and adds a caching layer with DoctrineCache.
Installation
add ivoba/buzzle to your composer requirements and:
composer update ivoba/buzzle
Usage
If you want to cache your Buzz requests, replace the Buzz/Browser with the Buzzle/Browser.
$browser = new Buzzle/Browser();
$browser->setCacher(new Doctrine/Common/Cache/PhpFileCache($cacheDir), new Buzzle/Validators/CacheValidator());
$browser->call($url, $method, $headers, $content, $cacheLifetime);
Features
- multiple cache backends like filesystem, redis, memcached etc. thanks to DoctrineCache
- caches only GET or HEAD
- caches only valid HTTP response status code ('200', '203', '204', '205', '300', '301', '410')
- adds a header to the response, if from cache
- takes care of CacheControl headers
- CacheControl headers can be forced to be ignored:
Todo
- unit tests!
Disclaimer
- As the name suggests, you might better have a look at guzzle ;) since it has superpower.
- This lib is inspired by: https://github.com/dozoisch/CachedBuzzBundle
Licence
MIT
All versions of buzzle with dependencies
PHP Build Version
Package Version
The package ivoba/buzzle contains the following files
Loading the files please wait ....