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 5.4.1.7 Latest Release

Published by skipperbent 11 months ago

  • Fixed getUrl() not working for home urls.
simple-php-router - Version 5.4.1.6

Published by skipperbent 11 months ago

  • BaseCsrfVerifier: Fixed included parameter triggering on other request-types than post.
simple-php-router - Version 5.4.1.5

Published by skipperbent 11 months ago

  • Fixed rewrite-route not being executed in rare instances.
simple-php-router - Version 5.4.1.4

Published by skipperbent 11 months ago

  • Fixed setHost nullable value.
simple-php-router - Version 5.4.1.3

Published by skipperbent 11 months ago

  • Remove potential port from hostname.
simple-php-router - Version 5.4.1.1

Published by skipperbent 11 months ago

  • Added better handling of domains on urls.
simple-php-router - Version 5.4.1.0

Published by skipperbent 11 months ago

  • Fixed domains not being prepending properly to urls.
  • Won't prepend subdomain to urls if subdomain is equal to current host.
  • Url: implemented parse function.
  • Router: getUrl now parses url to properly parse the subdomain.
simple-php-router - Version 5.4.0.1

Published by skipperbent 11 months ago

  • Fixed inputhandler overwriting post-values.
simple-php-router - Version 5.4.0.0

Published by skipperbent 11 months ago

  • InputHandler: Added support for input stream when not json encoded.
  • Added @return never to Response.php (thanks to @ATC-4K)
  • Fixed rare double execution of rewrite routes in exception handler (thanks to @ms-afk).
simple-php-router - Version 5.3.0.5

Published by skipperbent over 1 year ago

  • RouteResource: simplified the findUrl method (issue: #666)
simple-php-router - Version 5.3.0.4

Published by skipperbent over 1 year ago

  • Fix setUrl: When there are no parameters in the url, correctly empty the routes parameter array (issue: #663)
  • Fixed: Resource-route not respecting parameters when using getUrl (issue: #666)
  • Added more unit-tests.
simple-php-router - Version 5.3.0.3

Published by skipperbent over 1 year ago

  • Reverted exception handling to old behavior (issue: #660)
simple-php-router - Version 5.3.0.2

Published by skipperbent over 1 year ago

  • InputItem: php8.1 deprecated warning- added returnTypeWillChange to offsetGet (issue: #657).
simple-php-router - Version 5.3.0.1

Published by skipperbent over 1 year ago

  • PHP8: better exception handling

Looks like PHP8 handles exceptions differently with Throwables used in cases where php-error occurred.
To fix this Throwable are now used to catch exception in routeRequest and any instance of Throwable will be converted to Exception.

simple-php-router - Version 5.3.0.0

Published by skipperbent over 1 year ago

  • [[!!!] CsrfVerifier changes
    • [!!!] Made $except and $include array not nullable.
    • Added more customizable BaseCsrfVerifier. Can now be used as ticket for no hotlinking etc.
  • Fixed exception-handler rewrite not always triggered.
  • Changed behavior of router to always expect returned output to be string.
  • Updated documentation with more examples.
simple-php-router - Version 5.2.0.1

Published by skipperbent over 1 year ago

  • Fixed Response not initialized + incorrect phpDoc.
simple-php-router - 5.2.0.0

Published by skipperbent over 1 year ago

[!!!] BREAKING CHANGE: this update has added definitions to property types - and WILL require you to update your existing codebase (middlewares etc).

  • Request: optimized getIp method and reversed the order so proxy is always checked first.
simple-php-router - 5.1.1.0

Published by skipperbent over 1 year ago

  • Response: Fixed SESSION not shutdown correctly when using redirect.
  • [!!!] Disabled multiple route rendering by default: please enable this feature manually using SimpleRouter::enableMultiRouteRendering(true).
simple-php-router - Version 5.1.0.0

Published by skipperbent over 1 year ago

  • Feature: added support for slash in parameters (see readme).
  • Route: Fixed hardcoded param modifier.
  • Route: optimisations.
  • Updated Readme.
simple-php-router - Version 5.0.0.3

Published by skipperbent over 1 year ago

  • Fixed CSRF-token exception not triggering custom exception-handlers.
  • Updated PHPStan.