定制 ivoba/buzzle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ivoba/buzzle

最新稳定版本:1.0.0

Composer 安装命令:

composer require ivoba/buzzle

包简介

README 文档

README

Extension for Buzz

It currently extends the Buzz Browser and adds a caching layer with DoctrineCache.

Build Status Total Downloads

###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 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

###Licence MIT

统计信息

  • 总下载量: 30.17k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-03-26