scandar / hit-and-run
There is no license information available for the latest version (0.1.1) of this package.
An HTTP client that hits the server, and runs away.
This package's canonical repository appears to be gone and the package has been frozen as a result.
0.1.1
2019-08-08 15:14 UTC
Requires
- league/uri: 5
This package is auto-updated.
Last update: 2020-12-08 18:25:59 UTC
README
Hit and Run is a PHP HTTP Client that let's you send requests and close the connection without waiting for the server to respond.
Installation
$ composer require scandar/hit-and-run
Usage
use Scandar\HitAndRun\HttpClient; HttpClient::get('https://www.google.com');
Methods
HttpClient::get()
HttpClient::post()
HttpClient::put()
HttpClient::patch()
HttpClient::delete()
example
HttpClient::post('http://127.0.0.1:3000/test', [ 'body' => 'here' ], [ 'Headers' => 'Here', 'Content-Type' => 'application/json', ]);