6 个开源的PHP HTTP 客户端请求库

jopen 10年前

1. Guzzle:

6 个开源的PHP HTTP 客户端请求库

Guzzle is an independent HTTP client for PHP. You no longer need to depend on cURL, SOAP or REST to pull the data. Guzzle serves need of API for communication in old static/dynamic websites. The new websites are mostly dependent on front-end technology. Guzzle is very time saving option for specific projects.

2. Requests:

6 个开源的PHP HTTP 客户端请求库

Requests for PHP humble HTTP request library. It simplifies from you interact with other sites and takes away all your worries. Requests can provide better API wrapper than cURL. Many developers have liked the idea of Requests and they are migrating to Requests for many of their projects.

3. HTTPFul:

6 个开源的PHP HTTP 客户端请求库

HTTPFul is simple, chain able and readable PHP library intended to make speaking HTTP sane. Developers focus on interacting with APIs installing sifting through cURL set_opt pages. This is an ideal PHP REST client. HTTPFul is evolving project. The tool brings many cool features to developers.

4. PHP VCR:

6 个开源的PHP HTTP 客户端请求库

PHP VCR helps you in recording test suit’s HTTP integration and replay them during future test runs. PHP VCR assures fast, deterministic and accurate tests. The tool can record HTTP interactions automatically and replay them back to you with little code work. It also supports YAML and JSON for storing data. PHP VCR supports all common HTTP extensions and functions.

5. Buzz:

6 个开源的PHP HTTP 客户端请求库

Buzz is a lightweight HTTP client. You an store and retrieve data using Buzz. This is a great tool for beginners, it helps them learn more about HTTP clients and the way they work in real world.

6. Goutte:

6 个开源的PHP HTTP 客户端请求库

Goutte is an innovative HTTP scraping tool. You can use Goutte to scrape content using PHP skills. You can integrate the Goutte API to scrape/screen websites and code some stuff to extract data as per your requirements.