Download the PHP package shisa/httpclient without Composer
On this page you can find all versions of the php package shisa/httpclient. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download shisa/httpclient
More information about shisa/httpclient
Files in shisa/httpclient
Download shisa/httpclient
More information about shisa/httpclient
Files in shisa/httpclient
Vendor shisa
Package httpclient
Short Description A simple lightweight HTTP client for php
License MIT
Homepage https://github.com/Xavier-Lam/shisa-httpclient
Package httpclient
Short Description A simple lightweight HTTP client for php
License MIT
Homepage https://github.com/Xavier-Lam/shisa-httpclient
Please rate this library. Is it a good library?
Informations about the package httpclient
HTTPClient
A simple lightweight http client for PHP.
Installation
composer require shisa/httpclient
Quickstart
use Shisa\HTTPClient\Clients\HTTPClient;
use Shisa\HTTPClient\Formatters\JsonFormatter;
$client = new HTTPClient();
$client->setBaseUrl('https://baidu.com');
$formatter = new JsonFormatter();
$client->setFormatter($formatter);
$response = $client->send('/debug', 'POST', ['data' => 1]);
$data = $response->json();
Usages
Extend
TODOS
Changelog
0.2.1
- (BREAKING CHANGE) createRequest方法改为public方法
- 增加FormData Formatter
- 允许给
Request
对象增加属性
0.2.0
- Auth的isInvalidAuthError改为接受Exception异常
- 增加authRequestPostPrepare方法
- PreparedRequest的headers改为Key: value
All versions of httpclient with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3
The package shisa/httpclient contains the following files
Loading the files please wait ....