Skip to content

Releases: skipperbent/simple-php-router

Version 1.7.3

15 Apr 21:15

Choose a tag to compare

  • Fixed getIp in HttpRequest class sometimes not picking up local-ip.
  • Fixed get-parameters as array (param[id]=value) causing array-to-string notice.
  • Made setDefaultNamespace method in RouterBase chainable.
  • Simplified SimpleRouter class.
  • Added Input classes from Pecee-framework to enable easy access of input-parameters from custom controllers.
  • Updated documentation to reflect new changes.

Version 1.7.2.1

09 Apr 13:39

Choose a tag to compare

  • Moved group-middleware rendering to routeRequest method in RouterBase to ensure all router urls has been initialized.
  • Optimisations.

Version 1.7.1

09 Apr 08:02

Choose a tag to compare

Changelog

  • Added minimum requirements (issue: #80, thanks @MarcinOrlowski)
  • Fixed problem with nested group not merging prefix correctly (issue: #83, thanks @MarcinOrlowski)
  • Added ExceptionHandling functionality which somehow never got implemented correctly and/or got lost somewhere in between (see notes blow for more information).
  • CSRF-token is no longer initiated by RouterBase and is therefore not enabled by default. Please read notes section below for more information.
  • Group middlewares are now loaded on each page-load if prefix is set and matches the current route.
  • Added some basic unit tests (more to come).
  • Optimized CSRF-token management.
  • Optimized code and removed unused references.
  • Updated documentation with list of sites that uses project in production.
  • Squashed bugs.

Notes

CSRF-security

CSRF-token are no longer initiated by RouterBase. That means that the router will have no CSRF security enabled by default. To add this functionality, please add this line to your custom router-class or routes.php file:

SimpleRouter::csrfVerifier(new \Pecee\Http\Middleware\BaseCsrfVerifier());

Custom Exception handling

You can use custom exception handling like shown in the documentation. You classes need to implement the IExceptionHandler interface.

Version 1.6.5

07 Apr 21:21

Choose a tag to compare

  • Fixed issue causing nested groups not merging namespace correctly.
  • Fixed issue causing longer urls (for example: /route) to have higher priority than (/route/match) in some cases.

Version 1.6.4

07 Apr 17:34

Choose a tag to compare

  • Fixed nested groups not merging settings to routes.
  • Added support for multiple aliases using array.

Version 1.6.3

19 Mar 18:13

Choose a tag to compare

  • Added rewrite_uri parameter to Request class.
  • Bugfixes.

Version 1.6.2

19 Mar 17:59

Choose a tag to compare

  • Readded rendering of groups.

Version 1.6.1

19 Mar 16:40

Choose a tag to compare

  • Optimisations + bugfixes.

Version 1.6.0

19 Mar 15:30

Choose a tag to compare

  • Added custom boot-manager support to allow rules to be manipulated through database, file etc. Please see documentation for further information.
  • Moved RouterException to Exception namespace.
  • Optimisations and cleanup.

Version 1.5.8

18 Mar 16:56

Choose a tag to compare

  • Settings on individual routes in a group, now have higher priority than the ones inherited by the group (if any).