Download the PHP package ihexiang/requests without Composer
On this page you can find all versions of the php package ihexiang/requests. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package requests
requests
介绍
PHP Requests 支持 GET、POST、PUT、PATCH、DELETE、HEAD、OPTIONS 等方法
运行环境
- PHP版本 ( >= 5.4 )
- composer
安装
composer require ihexiang/requests v1.0.1
支持的方法
- GET 示例
- POST 示例
- PUT 示例
- PATCH 示例
- DELETE 示例
- HEAD 示例
- OPTIONS 示例
响应 Response
-
每一个请求都返回一个响应对象 response
-
成员属性
- header 响应头信息
- http_code HTTP code 码
- body 响应内容体
- erron 错误码
- error 错误消息
-
成员方法
- content() 获取文本类型的 响应内容
- toArray(dataType) 获取数组类型的 响应内容
示例
LICENSE
Apache-2.0
All versions of requests with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
The package ihexiang/requests contains the following files
Loading the files please wait ....