2017 © Pedro Peláez
 

library http

Manage http message

image

seeren/http

Manage http message

  • Wednesday, May 30, 2018
  • by seeren
  • Repository
  • 0 Watchers
  • 0 Stars
  • 354 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

Seeren\Http

Build Require Coverage Download Codacy Version, (*1)

Manage http messages, (*2)


Installation

Seeren\Http is a PSR-7 http messages interfaces and a PSR-18 http client interfaces implementation, (*3)

composer require seeren/http

Seeren\Http\Client

Retrieve response from sending request, (*4)

use Seeren\Http\Client\Client;
use Seeren\Http\Uri\Uri;

$client = new Client('GET', new Uri(
    'https',
    'packagist.org',
    'packages/seeren/http.json'
));
echo $client->sendRequest()->getBody();

Seeren\Http\Uri

Uri representation, (*5)

use Seeren\Http\Uri\Uri;

$uri = new Uri('http', 'host');

Handle incoming request Uri, (*6)

use Seeren\Http\Uri\RequestUri;

$uri = new RequestUri();

Seeren\Http\Stream

Handle resource with open mode, (*7)

use Seeren\Http\Stream\Stream;

echo new Stream('some-url', Stream::MODE_R);

Handle input for all http methods, (*8)

use Seeren\Http\Stream\RequestStream;

echo new RequestStream();

Handle output, (*9)

use Seeren\Http\Stream\ResponseStream;

$stream = new ResponseStream();
$stream->write('Client output');

Seeren\Http\Request\Request

Server Request representation with json or form input body, (*10)

use Seeren\Http\Request\Request;
use Seeren\Http\Stream\RequestStream;
use Seeren\Http\Uri\RequestUri;

$request = new Request(
    new RequestStream(),
    new RequestUri()
);

Seeren\Http\Response\Response

Server response, (*11)

use Seeren\Http\Response\Response;
use Seeren\Http\Stream\ResponseStream;

$response = new Response(
    new ResponseStream()
);

License

This project is licensed under the MIT License, (*12)

The Versions

30/05 2018

dev-master

9999999-dev

Manage http message

  Sources   Download

MIT

The Requires

 

The Development Requires

psr-7 server client http-server http-client

30/05 2018

v2.0.3

2.0.3.0

Manage http message

  Sources   Download

MIT

The Requires

 

The Development Requires

psr-7 server client

27/06 2017

v2.0.2

2.0.2.0

Manage http message

  Sources   Download

MIT

The Requires

 

The Development Requires

psr-7 http-server http-client

26/06 2017

v2.0.1

2.0.1.0

Manage http message

  Sources   Download

MIT

The Requires

 

The Development Requires

psr-7 http-server http-client

15/04 2017

v1.2.0

1.2.0.0

Psr-7 implementation

  Sources   Download

MIT

The Requires

 

The Development Requires

psr-7 http-server http-client

02/11 2016

v1.1.2

1.1.2.0

Psr-7 implementation

  Sources   Download

MIT

The Requires

 

27/10 2016

v1.1.1

1.1.1.0

Psr-7 implementation

  Sources   Download

MIT

The Requires

 

26/10 2016

v1.0.3

1.0.3.0

Psr-7 implementation

  Sources   Download

MIT

The Requires

 

15/10 2016

v1.0.2

1.0.2.0

Psr-7 implementation

  Sources   Download

MIT

The Requires

 

13/10 2016

v1.0.1

1.0.1.0

Psr-7 implementation

  Sources   Download

MIT

The Requires