simple-php-router

Simple, fast and yet powerful PHP router that is easy to get integrated and in any project. Heavily inspired by the way Laravel handles routing, with both simplicity and expand-ability in mind.

Downloads
140.9K
Stars
646
Committers
13
simple-php-router - Version 1.3.0.4

Published by skipperbent almost 9 years ago

  • Fixed route not matching when two params added next to each other.
simple-php-router - Version 1.3.0.3

Published by skipperbent almost 9 years ago

  • Added support for letters (before it was only numbers) in default parameter regex.
simple-php-router - Version 1.3.0.2

Published by skipperbent almost 9 years ago

  • Fixed parameters on custom regex match.
simple-php-router - Version 1.3.0.1

Published by skipperbent almost 9 years ago

  • Fixed optinal parameters not availible when getting route.
  • Optimised route matching. This should be way more officient and also seems to fix issues with getting the current route using the getRoute method.
  • Added support for optional routes, for example: {id?}.
  • Updated documentation to reflect new changes.
simple-php-router - Version 1.3.0.0

Published by skipperbent almost 9 years ago

  • Optimised route matching. This should be way more officient and also seems to fix issues with getting the current route using the getRoute method.
  • Added support for optional routes, for example: {id?}.
  • Updated documentation to reflect new changes.
simple-php-router - Version 1.2.8.6

Published by skipperbent almost 9 years ago

  • Fixed support for urls like /path/{param}/path.
simple-php-router - Version 1.2.8.5

Published by skipperbent almost 9 years ago

  • Added getIsSecure method to Request class.
simple-php-router - Version 1.2.8.4

Published by skipperbent almost 9 years ago

  • Group will now always be rendered no matter of what prefix is.
simple-php-router - Version 1.2.8.3

Published by skipperbent almost 9 years ago

  • Fixed route matching in RouterEntry not matching routes with multiple arguments.
simple-php-router - Version 1.2.8.2

Published by skipperbent almost 9 years ago

  • Fixed Group only loading middleware when initialised.
simple-php-router - Version 1.2.8.1

Published by skipperbent almost 9 years ago

  • All headers in Request class now has lowercased keys.
  • Put request-method now also allow patch request methods.
  • Fixed support for multiple middlewares using array.
  • Fixed match and parameters-match methods not being merged when used on group.
simple-php-router - Version 1.2.8

Published by skipperbent almost 9 years ago

Notes

Middleware abstract class has been changed to an interface called IMiddleware - please change all references in your code to use the new interface.

Changelog

  • Changed Middleware to interface - as it's easier to inherit and use in other frameworks/projects.
  • RouterController now loads method based on request-method (example: getMethodname).
  • Changed references for old Middleware abstract class to use new interface.
  • Middleware must now be instance of IMiddleware.
  • Fixed null warnings.
simple-php-router - Version 1.2.7.7

Published by skipperbent almost 9 years ago

  • Optimised getRoute method in RouterBase for custom urls.
  • Added magic method getters and setters, and made Request class a singleton so applied configuration can be available from everywhere.
  • Made RouterBase use singleton HttpRequest class.
simple-php-router - Version 1.2.7.6

Published by skipperbent almost 9 years ago

  • Fixed Exceptions due to route null value.
simple-php-router - Version 1.2.7.5

Published by skipperbent about 9 years ago

  • Fixed custom regular expression matching after last release.
simple-php-router - Version 1.2.7.4

Published by skipperbent about 9 years ago

  • Middlewares are no longer loaded on invalid routes.
  • Optimised middleware loading and routes.
simple-php-router - Version 1.2.7.3

Published by skipperbent about 9 years ago

  • Optimised router handling - router will now use the order provided when loading routes.
simple-php-router - Version 1.2.7.2

Published by skipperbent about 9 years ago

  • Fixed routes always matching /show/{id} when other routes are which should match.
simple-php-router - Version 1.2.7.1

Published by skipperbent about 9 years ago

  • getUri() method in Request class no longer appends "/".
  • Optimised parseParameters method in RouterRoute class for regex matches.
simple-php-router - Version 1.2.7

Published by skipperbent about 9 years ago

  • When no parameter is received, router now returns null instead of empty string.
  • json method in Response class now stops response after execution.
  • Updated composer.json with correct autoload.