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

Published by skipperbent almost 9 years ago

  • Fixed some resources not working after latest update.
  • Optimisations + cleanup.
simple-php-router - Version 1.4.6

Published by skipperbent almost 9 years ago

  • Fixed getRoute sometimes not passing current loaded route.
  • Fixed optional parameters in some occasions not working properly.
simple-php-router - Version 1.4.5

Published by skipperbent almost 9 years ago

  • Simplified regex for matching parameters.
simple-php-router - Version 1.4.4

Published by skipperbent almost 9 years ago

  • Fixed custom parameters regex not working.
  • Renamed setting parameterRegex to match to match the Laravel documentation.
  • Fixed show method in ressource controller not always called if using nested ressources.
simple-php-router - Version 1.4.3

Published by skipperbent almost 9 years ago

  • Added support for setups where getallheaders function is not available in Request class.
  • matchDomain method in RouterGroup class now always return bool.
  • Minor tweaks.
simple-php-router - Version 1.4.2

Published by skipperbent almost 9 years ago

  • Fixed wrong validation on domain.
simple-php-router - Version 1.4.1

Published by skipperbent almost 9 years ago

  • Fixed not validating domain on routes.
  • Added basic alias method in SimpleRouter class, for common usage that matches post + get.
  • Other small changes.
simple-php-router - Version 1.4.0

Published by skipperbent almost 9 years ago

  • ResourceController now support nested ressources.
  • getRoute now support domains.
  • Fixed parameter matching regex when using multiple optional parameters.
  • Updated documentation.
  • Minor optimisations + bugfixes.
simple-php-router - Version 1.3.10

Published by skipperbent almost 9 years ago

  • Readded BaseCsrfVerifier middleware.
  • Csrf-token expire time is now updated on each page refresh.
  • CSRF-token update now happens after the route has been loaded, to ensure no faulty "Invalid csrf-token" exceptions.
simple-php-router - Version 1.3.9

Published by skipperbent almost 9 years ago

  • Fixed getParams not being passed when using getRoute on current route.
  • Fixed merge current parameters with new provided ones when using getRoute.
  • Fixed getting current route not always returning current url.
simple-php-router - Version 1.3.8

Published by skipperbent almost 9 years ago

  • Fixed get params warnings.
simple-php-router - Version 1.3.7

Published by skipperbent almost 9 years ago

  • Removed references to Pecee framework.
  • Fixed variables not being initialised before usage.
  • Cleaned up duplicate checks.
  • Other small optimisations and bugfixes.
simple-php-router - Version 1.3.6

Published by skipperbent almost 9 years ago

  • Fixed error with RouterGroup class causing group not to be rendered if no domain is available.
simple-php-router - Version 1.3.5

Published by skipperbent almost 9 years ago

  • Optimised code: fixed missing return statement.
simple-php-router - Version 1.3.4

Published by skipperbent almost 9 years ago

  • Added support for domains array on group.
  • Group will not render if one or more domain does not match.
simple-php-router - Version 1.3.3

Published by skipperbent almost 9 years ago

  • Added support for subdomain routing on groups.
  • Also improved regex matching when using custom regular expressions.
  • Changed many of the foreach statements - for maximum speed optimisations.
  • Other minor optimisations and bugfixes.
simple-php-router - Version 1.3.2

Published by skipperbent almost 9 years ago

  • Removed baseCfsrVerifier from constructor in RouteBase class, to make it completely optional (to increase speed on project which doesn't need it).
simple-php-router - Version 1.3.1

Published by skipperbent almost 9 years ago

  • Optimised cache method in Response class.
simple-php-router - Version 1.3.0.7

Published by skipperbent almost 9 years ago

  • Added support for custom ExceptionHandlers on group level.
  • Routes now contain parent group, if any.
  • Fixed wrong usage of required parameter.
  • Updated documentation.
simple-php-router - Version 1.3.0.6

Published by skipperbent almost 9 years ago

  • If parameter is empty set the value to null in RouterRoute.
  • RouterRoute now throws RouterException is required parameter is not filled.