scandar / hit-and-run
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. Email us for help if needed.
Installs: 370
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/scandar/hit-and-run
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', ]);