anourvalar / http-client
HTTP client
1.10.10
2026-02-23 07:15 UTC
Requires
- php: ^8.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.26
- phpstan/phpstan: ^2.0
- squizlabs/php_codesniffer: ^3.7
- vimeo/psalm: ^6.8
This package is auto-updated.
Last update: 2026-02-23 07:16:57 UTC
README
Installation
composer require anourvalar/http-client
Usage
API Client (JSON)
$http = new \AnourValar\HttpClient\Http; $http->asJsonClient()->authToken('...')->body(['foo' => 'bar'])->post('https://google')->dump();
Web Browser (Robot)
$http = new \AnourValar\HttpClient\Http; $http->asBrowser()->referer('https://google.com')->get('https://google.com/?start=10')->dump();