2017 © Pedro Peláez
 

library http-request-matcher

Matcher interface for PSR-7 HTTP request, like preg_match() for string.

image

n1215/http-request-matcher

Matcher interface for PSR-7 HTTP request, like preg_match() for string.

  • Friday, December 8, 2017
  • by n1215
  • Repository
  • 0 Watchers
  • 1 Stars
  • 118 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

http-request-matcher

Latest Stable Version License Build Status Code Coverage Scrutinizer Code Quality, (*1)

Matcher interface for PSR-7 HTTP request, like preg_match() for string., (*2)

Usage


// 1. implement RequestMatcherInterface or ServerRequestMatcherInterface. you can use RequestMatchResult concrete class. class YourServerRequestMatcher implements ServerRequestMatcherInterface { public function match(ServerRequestInterface $request): RequestMatchResultInterface { // implement } } // 2. use for PSR-7 Request $matcher = new YourServerRequestMatcher(); /** @var \Psr\Http\Message\ServerRequestInterface $request */ $result = $matcher->match($request); if ($result->isSuccess()) { var_dump($result->getParams()); }

Implementation examples

Class diagram

request-matcher, (*3)

The Versions

08/12 2017

dev-master

9999999-dev https://github.com/n1215/http-request-matcher

Matcher interface for PSR-7 HTTP request, like preg_match() for string.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar n1215

psr-7 matcher http-request

08/12 2017

v1.0.0

1.0.0.0 https://github.com/n1215/http-request-matcher

Matcher interface for PSR-7 HTTP request, like preg_match() for string.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar n1215

psr-7 matcher http-request

06/12 2017

v0.2.0

0.2.0.0 https://github.com/n1215/http-request-matcher

matcher for PSR-7 HTTP server request

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar n1215

psr-7 matcher http-request

02/12 2017

v0.1.0

0.1.0.0 https://github.com/n1215/http-request-matcher

matcher for PSR-7 HTTP server request

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar n1215

psr-7 matcher http-request