Skip to content

Releases: skipperbent/simple-php-router

Version 1.1

21 Oct 10:13
Compare
Choose a tag to compare

Breaking changes

  • RouterRessources has been renamed to RouterResource.
  • SimpleRouter::ressource has been renamed to SimpleRouter::resource.

Changelog

  • Fixed router not throwing RouterException with "Method not allowed" when using a unsupported request method.
  • Method request type are now checked on all classes in the RouterBase class.
  • Added support for alias on RouterRoute.
  • Added typo in resource (renamed class from Ressource to Resource).
  • Added optional settings parameter in most of the methods in the SimpleRouter class.
  • Urls now always returns ending slash when using getRoute() method.
  • Fixed common errors with routing.
  • Simplified getRoute method.
  • Updated documentation.

Version 1.0.3.1

18 Oct 21:21
Compare
Choose a tag to compare
  • Added new match method to RouterEntry to match specific regular expression on url.
  • GetRoute now returns provided controller and method if no match is found.
  • Cleaned up the code a bit.
  • Bugfixes and other minor improvements.

Version 1.0.3

18 Oct 15:40
Compare
Choose a tag to compare
  • Fixed issues with getRoute method.
  • Added new Response and Request classes.
  • Added CSRF stuff.
  • Cleanup and bugfixes.

Version 1.0.2.1

14 Oct 18:45
Compare
Choose a tag to compare
  • Fixed router for controller and ressources not matching /something?.
  • Added where method in RouterEntry class to support custom regular expression matches on parameters.
  • Moved parameters property to RouterRoute class.
  • Added IRouteEntry class.

Version 1.0.2

14 Oct 18:41
Compare
Choose a tag to compare
  • Fixed router for controller and ressources not matching /something?.
  • Added where method in RouterRoute class to support custom regular expression matches on parameters.
  • Moved parameters property to RouterRoute class.
  • Added IRouteEntry class.

Version 1.0.1

11 Oct 09:34
Compare
Choose a tag to compare
  • Made sure that urls are always presented in the correct order.
  • Ignored RouterGroup in when looping through controllers in controllerUrlMap.