Skip to content

Nyholm/http-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nyholm's HTTP client

Latest Version Software License Total Downloads

A super light HTTP client that sends PSR-7 HTTP messages.

Install

Via Composer

$ composer require nyholm/http-client

Usage

// Create a PSR-7 request
$request = MessageFactoryDiscovery::find()->createRequest('GET', 'http://example.com');

// You will get back a PSR-7 response
$response = (new Client)->sendRequest($request);

Documentation

There is no configuration of any kind that could be done to this client. If you want more functionality you should use Plugins to HTTPlug. See their documentation.

The MIT License (MIT). Please see License File for more information.