Releases: skipperbent/simple-php-router
Releases · skipperbent/simple-php-router
Version 1.8.0.2
- Minor optimisations.
Version 1.8.0.1
- Optimisations and bugfixes.
Version 1.8.0.0
- Simplified exception-handling (see demo project for examples).
- Optimised sample-project.
- Optimised and added further unit-tests.
- Optimised and bugfixes.
- Updated documentation.
Version 1.7.5.1
- Optimised middleware load order.
Version 1.7.5.0
- Automatically push middlewares if multiple in nested group.
Example:
Router::group(['middleware' => '\DailyFix\Middleware\LanguageDetection'], function() {
Router::group(['prefix' => '/dashboard', 'namespace' => '\DailyFix\Controller\Dashboard', 'middleware' => '\DailyFix\Middleware\DashboardAccess'], function() {
Router::controller('/', 'DefaultController');
});
});
Will now automatically push middlewares as you would expect, so LanguageDetection
is loaded first followed by DashboardAccess
.
Version 1.7.4.4
- Added demo project which can be found in the
demo-project
folder. - Added documentation for demo-project.
- Updated documentation.
Version 1.7.4.3
- Allow for default parameters (including A-Z, a-z, 0-9 and "-") when parsing parameters in
RouterResource
class.
Version 1.7.4.2
- Fixed some routes with ending slash not matching on when using resource.
Version 1.7.4.1
- Enhanced regular expression used for matching parameters.
- Added basic unit-tests for parameters.
- Fixed typos in PHP-docs and other minor optimizations.
Version 1.7.4.0
- Optimized the way parameters are parsed as a result, simple-router now supports routes like
/{param1}-{param2}.json
. - Replaced reg-ex for parameter-matching with
\w
which means that default parameter matching on routes now include_
(underscore) per default. - Simplified
MiddlewareTest
class. - Added contributing site in Readme.