Skip to content

Releases: skipperbent/simple-php-router

Version 1.8.0.2

27 Oct 17:16

Choose a tag to compare

  • Minor optimisations.

Version 1.8.0.1

27 Oct 15:07

Choose a tag to compare

  • Optimisations and bugfixes.

Version 1.8.0.0

20 Oct 06:38

Choose a tag to compare

  • 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

28 Sep 10:30

Choose a tag to compare

  • Optimised middleware load order.

Version 1.7.5.0

28 Sep 10:25

Choose a tag to compare

  • 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

26 Sep 12:40

Choose a tag to compare

  • Added demo project which can be found in the demo-project folder.
  • Added documentation for demo-project.
  • Updated documentation.

Version 1.7.4.3

14 Jun 20:21

Choose a tag to compare

  • Allow for default parameters (including A-Z, a-z, 0-9 and "-") when parsing parameters in RouterResource class.

Version 1.7.4.2

04 Jun 16:45

Choose a tag to compare

  • Fixed some routes with ending slash not matching on when using resource.

Version 1.7.4.1

04 Jun 16:21

Choose a tag to compare

  • 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

04 Jun 13:14

Choose a tag to compare

  • 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.