高性能的 PHP 封裝的 HTTP Restful 多線程並發請求庫-MultiHttp
MultiHttp
This is high performance curl wrapper written in pure PHP. It"s compatible with PHP 5.4+ and HHVM. Notice that libcurl version must be over 7.36.0, otherwise timeout can not suppert decimal.
這是一個高性能的PHP封裝的HTTP Restful多線程並發請求庫,參考借鑒了httpresful 、multirequest等優秀的代碼。它與PHP 5.4和hhvm兼容。 注意,libcurl版本必須>=7.36.0,否則超時不支持小數。
Contents
Feature
Installation
Usage
Single-request
Multi-request
Documentation
Request
MultiRequest
Feature
alias of curl option, e.g. "timeout" equals "CURLOPT_TIMEOUT" etc.
Request and MultiRequest class , can be used in any combination
graceful and efficient
Installation
You can use composer to install this library from the command line.
Usage
Single-request:
Multi-request:
Documentation
Request
option shorthand
[More] https://github.com/sinacms/MultiHttp/blob/master/usage.md
更多分享,敬請關注
本文來源網路,侵立刪!
TAG:PHP技術大全 |