Releases: skipperbent/simple-php-router
Releases · skipperbent/simple-php-router
Version 1.7.3
- Fixed
getIp
inHttpRequest
class sometimes not picking up local-ip. - Fixed get-parameters as array (
param[id]=value
) causing array-to-string notice. - Made
setDefaultNamespace
method inRouterBase
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
- Moved group-middleware rendering to
routeRequest
method inRouterBase
to ensure all router urls has been initialized. - Optimisations.
Version 1.7.1
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
- 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
- Fixed nested groups not merging settings to routes.
- Added support for multiple aliases using array.
Version 1.6.3
- Added
rewrite_uri
parameter toRequest
class. - Bugfixes.
Version 1.6.2
- Readded rendering of groups.
Version 1.6.1
- Optimisations + bugfixes.
Version 1.6.0
- Added custom boot-manager support to allow rules to be manipulated through database, file etc. Please see documentation for further information.
- Moved
RouterException
toException
namespace. - Optimisations and cleanup.
Version 1.5.8
- Settings on individual routes in a group, now have higher priority than the ones inherited by the group (if any).