2017 © Pedro Peláez
 

library buzzle

image

ivoba/buzzle

  • Friday, December 19, 2014
  • by ivoba
  • Repository
  • 1 Watchers
  • 1 Stars
  • 15,067 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

Buzzle

Extension for Buzz, (*1)

It currently extends the Buzz Browser and adds a caching layer with DoctrineCache., (*2)

Build Status Total Downloads, (*3)

Installation

add ivoba/buzzle to your composer requirements and:, (*4)

composer update ivoba/buzzle

Usage

If you want to cache your Buzz requests, replace the Buzz/Browser with the Buzzle/Browser., (*5)

$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 X-Buzzle-Cache: fresh header to the response, if from cache
  • takes care of CacheControl headers
  • CacheControl headers can be forced to be ignored: $Validator->setForceCache(true);

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, (*6)

The Versions

19/12 2014

dev-master

9999999-dev

  Sources   Download

The Requires

 

The Development Requires

by Hugo Dozois-Caouette

curl cache http client

19/12 2014

1.0.0

1.0.0.0

  Sources   Download

The Requires

 

The Development Requires

by Hugo Dozois-Caouette

curl cache http client

19/12 2014

0.1.0

0.1.0.0

  Sources   Download

The Requires

 

The Development Requires

by Hugo Dozois-Caouette

curl cache http client