http-router

Release 2.0 is released! Very fast HTTP router for PHP 7.1+ based on PSR-7 and PSR-15 with support for annotations/attributes and OpenAPI (Swagger) Specification

MIT License

Downloads
43.9K
Stars
159
Committers
6

Bot releases are hidden (Show)

http-router - v2.10.2

Published by fenric about 3 years ago

  • Fixed #78.
http-router - v2.10.1

Published by fenric about 3 years ago

  • Minor changes.
http-router - v2.10.0

Published by fenric about 3 years ago

  • New abstract layer, used in the collector and loaders, for resolving request handlers and middlewares;
  • The route attribute is merged with the route annotation;
  • The route annotation/attribute can be attached to class methods;
  • The descriptor loader can accept class names;
  • Many code and test improvements.
http-router - v2.9.0

Published by fenric about 3 years ago

  • Objects resolving passed through the collector (#30 #71);
  • A new CLI command RouteListCommand (#72);
  • Router builder (#73);
  • Hosts logic improved;
  • Ability to set 1 verb only in the annotation.
http-router - v2.8.0

Published by fenric about 3 years ago

  • The new Router::run() method with isolated matching logic (for example for error handling);
  • The new CallableMiddleware.
http-router - v2.7.0

Published by fenric over 3 years ago

  • Removed return type hint for BadRequestException::getViolations().
http-router - v2.6.0

Published by fenric over 3 years ago

  • PHP8 attribute support;
  • Hosts support;
  • The InvalidAnnotationParameterException was marked deprecated;
  • The InvalidAnnotationSourceException was marked deprecated;
  • The AnnotationDirectoryLoader was marked deprecated (use DescriptorDirectoryLoader).
http-router - v2.5.0

Published by fenric almost 4 years ago

  • PHP8 support.
http-router - v2.4.2

Published by fenric over 4 years ago

  • PageNotFoundException was added;
  • Development dependencies was updated.
http-router - v2.4.1

Published by fenric over 4 years ago

  • Array support in Annotation for Route description (concatenation alternative).
http-router - v2.4.0

Published by fenric over 4 years ago

  • The router match logic was changed (see #50);
  • The following properties were added for the route: summary, description and tags;
  • Loader::attachArray() was added;
  • MethodNotAllowedException::getJoinedAllowedMethods() was added;
  • UnsupportedMediaTypeException::getJoinedSupportedTypes() was added.
http-router - v2.3.0

Published by fenric over 4 years ago

  • Named patterns (for example: {id<@uuid>}).
http-router - v2.2.0

Published by fenric over 4 years ago

  • Load routes from a folder for the CollectableFileLoader;
  • (dev) Update dependency sunrise/http-message to v1.2.0.
http-router - v2.1.0

Published by fenric almost 5 years ago

  • new exception BadRequestException ;
  • new exception UnsupportedMediaTypeException;
  • update dependency phpunit/phpunit to v7.5.20;
http-router - v2.0.2

Published by fenric almost 5 years ago

  • store requested route instance in the request instance (may be useful, for example, for middleware...);
http-router - v2.0.1

Published by fenric almost 5 years ago

  • (dev) Pin dependency sunrise/http-message to 1.0.16
  • (dev) Update dependency phpunit/phpunit to v7.5.18
http-router - v2.0.0

Published by fenric almost 5 years ago

  • Routes implement RequestHandlerInterface and not MiddlewareInterface
  • The route collection is not a factory
  • And many more new features...
http-router - v1.0.14

Published by fenric over 5 years ago

  • MethodNotAllowedException->getAllowedMethodsAsString()
  • Update dependency phpunit/phpunit to v7.5.11
http-router - v1.0.13

Published by fenric over 5 years ago

  • New buildRegex method for Route
  • Update dependency sunrise/http-server-request to v1.0.11
  • Update dependency phpunit/phpunit to v7.5.7
http-router - v1.0.12

Published by fenric over 5 years ago

  • Update dependency sunrise/http-server-request to v1.0.9
Package Rankings
Top 3.11% on Packagist.org
Badges
Extracted from project README
Build Status Code Coverage Scrutinizer Code Quality Total Downloads Latest Stable Version License
Related Projects