最简单轻量的PHP CURL工具库 ws-http
ws-http 简单轻量的HTTP 客户端工具库(An Simplified, lightweight HTTP client library) 可用于 HTTP API 测试,支持 ssl,basic auth,代理,自定义请求头,以及常用HTTP 请求方法.(An HTTP API testing framework, written in PHP using curl. Supports ssl, basic auth, passing custom request headers, and most HTTP request methods. --- https://github.com/toohamster/ws-http 需求(Requirements) cURL PHP 5.4+ 安装(Installation) 使用 (Using) Composer 在 composer.json 文件中新增如下行(To install ws-http with Composer, just add the following to your composer.json file): { "require": { "toohamster/ws-http": "*" } } 或者手动运行命令(or by running the following command): php