Statistics
6897
13
5
4d
Badges
Tags
http
Dependencies

PSR-7 - Http Message Interface

πŸ’« PSR #7 [HTTP Message Interface] to Nette Framework.


Build Status Code coverage Licence

Downloads this Month Downloads total Latest stable

Discussion / Help

Join the chat

Install

composer require contributte/psr7-http-message

Versions

State Version Branch PHP
development ~0.5.0 master >= 7.1
stable ~0.4.0 master >= 7.1
stable ~0.3.0 master >= 5.6

Prolog

Middleware / Relay pattern is widely used for handling any HTTP requests, such as API request, streams, dynamic websites or just any suitable requests.

We have a many solutions and prepared libraries in PHP world.

This packages is based on great a probably best known library for PSR-7, it's called guzzle/psr-7.

Other libraries:

Overview


The development is sponsored by Tlapnet. Thank you guys! πŸ‘


Maintainers


Milan Felix Ε ulc

Marek BartoΕ‘

Thank you for testing, reporting and contributing.

  • v0.4

    Bump! πŸ—

    Diff: v0.3.1...v0.4

    Changed:

    • PHP 7.1
    • Travis stages

    Removed:

    • $request->getBodyClone()
  • v0.3.1 v0.3.1

    Bump! πŸ’ˆ

    Diff: v0.3...v0.3.1

    Changes:

    • upgrade nette/tester to v2.0

    Deprecated:

    • $request->getBodyClone()

    Added:

    • $request->getContentsCopy()
    • $request->getJsonBodyCopy()
  • v0.3 v0.3

    Bump! 🍹

    Diff: v0.2...v0.3

    Changes:

    • fix using traits [162f371][1faa3e8]
    • add simple Micro class to send response [6eb1f8d]
    • add ProxyRequest, ProxyResponse [9b1916a]
    • fix passing original body [e4ce769][#6]
    • micro enhancements
  • v0.2 v0.2

    Bump! πŸ”‘

    Diff: v0.1.4...v0.2

    Changes:

    • added request/response factories (Request::of($request)
    • added some useful methods: appendBody, writeBody, writeJsonBody, getContents, getJsonBody, hasQueryParam, getQueryParam, withAttributes
    • added extra traits for Request, ServerRequest, Response
    • added huge amount of tests
  • v0.1.3 v0.1.3

    Bump! ⏩

    Diff: v0.1.2...v0.1.3

    Changes:

    • create ServerRequest with cookies, query params, post and upload files
  • v0.1.4 v0.1.4

    Bumped! 🍯

    Diff: v0.1.3...v0.1.4

    Changes:

    • fixed handling uploaded files [#2]
  • v0.1.2 v0.1.2

    Bumped! πŸ”ͺ

    Diff: v0.1.1...v0.1.2

    Changes:

    • added Psr7ServerRequestFactory
    • fix Psr7RequestFactory headers
    • added NetteHttpTrait
    • relax composer dependencies
  • v0.1.1 v0.1.1

    Bumped! 🍯

    Diff: v0.1...v0.1.1

    Changes:

    • some Q&A changes
    • fix RequestFactory with Nette\Http\Request
  • v0.1 v0.1

    First bump! πŸ‘Š

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com