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 3.7.0.0

Published by skipperbent over 6 years ago

  • Fixed issue with subdomains on groups.
  • Fixed issue with loadble routes sometimes mistakenly inheriting wrong group.
  • Routes will now check if group matches before matching any custom regex.
  • Added setValue method to IInputItem interface to streamline the InputFile and InputItem classes.
  • Other minor optimisations.
  • Documentation: fixed broken links and cleaned it up.
simple-php-router - Version 3.6.0.5

Published by skipperbent over 6 years ago

  • Throw correct exception-types.
simple-php-router - Version 3.6.0.4

Published by skipperbent over 6 years ago

  • Fixed issue with PDO exception not returning correct type for error-code.
simple-php-router - Version 3.6.0.3

Published by skipperbent over 6 years ago

  • Stop router from processing routes if no valid route is found.
simple-php-router - Version 3.6.0.0

Published by skipperbent over 6 years ago

  • Renamed Uri class to Url.
  • Renamed setUri and getUri to setUrl and getUrl in Request class.
  • Added custom Exceptions and ensured that router only throws HttpExceptions.
  • Added isAjax method to Request class.
  • Added better phpDocs.
  • Other minor optimisations.

Release notes

This release contains changes that might affect your project. Please read the release notes carefully before updating.

  • Change any references from request()->setUri() to request()->setUrl.
  • Change any references from request()->getUri() to request()->getUrl.
  • Change any references to \Pecee\Http\Uri to \Pecee\Http\Url.
simple-php-router - Version 3.5.0.0

Published by skipperbent over 6 years ago

  • Simplified url-rewriting and callback handling.
  • Added support for using rewrites in Routes - and are no longer as tight to Middlewares and ExceptionHandlers.
  • Optimisations.
  • Updated documentation.
simple-php-router - Version 3.4.11.2

Published by skipperbent over 6 years ago

  • InputFile: Set default value to 0 to triggering error when calling getErrors on empty object.
simple-php-router - Version 3.4.11.1

Published by skipperbent over 6 years ago

Response class: fixed response()->refresh not using correct original url (including hash parameters, querystrings etc).

simple-php-router - Version 3.4.11.0

Published by skipperbent over 6 years ago

  • Updated exceptions in Php-docs.
  • Minor optimisations.
simple-php-router - Version 3.4.10.1

Published by skipperbent almost 7 years ago

  • Fixed Input::all not recognizing $_POST when php://input is not available.
simple-php-router - Version 3.4.10.0

Published by skipperbent almost 7 years ago

  • Fixed callback parameters default-value being overwritten (issue: #347 - thanks @Steph-24).
  • Added getProcessedRoutes method to Router class which allows to obtain routes that have been processed.
simple-php-router - Version 3.4.9.3

Published by skipperbent almost 7 years ago

  • Enabled fallback _method for every request-type.
simple-php-router - Version 2.6.8.1

Published by skipperbent almost 7 years ago

  • Enabled fallback _method for every request-type.
simple-php-router - Version 3.4.9.2

Published by skipperbent almost 7 years ago

  • Compatibility: setUri in Request object can be both string and Uri.
simple-php-router - Version 3.4.9.1

Published by skipperbent almost 7 years ago

  • Fixed filtering for get-params for all method in Input class.
simple-php-router - Version 2.6.8

Published by skipperbent almost 7 years ago

  • Fixed filtering for get-params for all method in Input class.
  • Fixed utf-8 header issue for response()->json() method (issue: #333).
simple-php-router - Version 3.4.9.0

Published by skipperbent almost 7 years ago

  • Fixed utf-8 header issue for response()->json() method (issue: #333).
simple-php-router - Version 3.4.8.0

Published by skipperbent almost 7 years ago

  • Added $options and $debt parameter to json method in Response class.
simple-php-router - Version 3.4.7.0

Published by skipperbent almost 7 years ago

  • Optimisations.
  • Added more PHPDocs.
simple-php-router - Version 3.4.6.4

Published by skipperbent almost 7 years ago

  • Fixed minor issues with parsing parameters on some occasion.
  • Optimisations.