您的位置:首页 > 理论基础 > 计算机网络

[Guzzle] PHP HTTP 客户端和框架

2015-06-03 14:28 671 查看
cURL是利用PHP发送HTTP请求最常用的标准方式。它比fopen这种方式更强大。

Guzzle, 是 cURL 的一个封装,使得这个功能甚至更好,此外还增了新的功能。

使用这个框架内,我们可以发送并行+持久连接。并且能够通过插件实现缓存,OAuth, AWS集成

All the power of cURL with a simple interface.
持久连接和并行请求
Streams request and response bodies
Service
descriptions for quickly building clients.
Powered by the Symfony2 EventDispatcher.
Use all of the code or only specific
components.
Plugins for
caching, logging, OAuth, mocks, and more
Includes a custom node.js webserver to test
your clients.

该框架是非常稳定,甚至用在Drupal核心,并且可以迅速融入任何代码。

项目地址: http://guzzlephp.org/

下载地址: https://github.com/guzzle/guzzle
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: