Skip to content

Releases: skipperbent/simple-php-router

Version 1.2.6.2

24 Oct 21:25
Compare
Choose a tag to compare
  • Fixed missing "/" in the getRoute method on some rare occasions.

Version 1.2.6.1

24 Oct 21:22
Compare
Choose a tag to compare

Note: Re-released as version 1.2.6.1 as the last version didn't contain the fix

  • If no parameters are specified/defined in the route, the getRoute method will now per default add the parameters array if provided instead.

Version 1.2.5

23 Oct 17:48
Compare
Choose a tag to compare
  • Fixed getRoute method in SimpleRouter not being static.

Version 1.2.4

22 Oct 20:01
Compare
Choose a tag to compare
  • Added getUserAgent and getReferer methods to Request class.
  • Added ip method to Response class.
  • Added getInput method to return request items in Response class.
  • Added more features to Response class.

Version 1.2.3

22 Oct 17:35
Compare
Choose a tag to compare
  • Fixed csrf-token cookie not being set on some paths.
  • Changed RouterException in BaseCsrfVerifier to TokenMismatchException.
  • Updated documentation.

Version 1.2.2

21 Oct 22:19
Compare
Choose a tag to compare

Breaking changes

Removed request-type prefix when loading methods.
Methods within the controller no longer has to be prefixed with the current request method.

For example when posting to a method - the name of the method no longer has to be named postSomething().

Changes

  • Added support for custom CSRF middlewares.
  • Added more logic to CsrfToken class.
  • Added header support to Request class.
  • Added option to set BaseCsrfVerifier class in RouterBase and SimpleRouter.
  • Removed request-type prefix when loading methods.
  • Updated documentation.
  • Fixed missing / in beginning of url in getRoute when route does not exist.

Version 1.2.1

21 Oct 17:16
Compare
Choose a tag to compare

Breaking changes

Removed request-type prefix when loading methods.
Methods within the controller no longer has to be prefixed with the current request method.

For example when posting to a method - the name of the method no longer has to be named postSomething().

Changes

  • Added support for custom CSRF middlewares.
  • Added more logic to CsrfToken class.
  • Added header support to Request class.
  • Added option to set BaseCsrfVerifier class in RouterBase and SimpleRouter.
  • Removed request-type prefix when loading methods.
  • Updated documentation.

Version 1.2

21 Oct 16:34
Compare
Choose a tag to compare

Breaking changes

Removed request-type prefix when loading methods.
Methods within the controller no longer has to be prefixed with the current request method.

For example when posting to a method - the name of the method no longer has to be named postSomething().

Changes

  • Added more logic to CsrfToken class.
  • Added header support to Request class.
  • Added option to set BaseCsrfVerifier class in RouterBase and SimpleRouter.
  • Removed request-type prefix when loading methods.
  • Updated documentation.

Version 1.1.2

21 Oct 13:23
Compare
Choose a tag to compare

Breaking changes

  • RouterRessources has been renamed to RouterResource.
  • SimpleRouter::ressource has been renamed to SimpleRouter::resource.

Changelog

  • Fixed middleware not loading and giving "class must be instance of Middleware" exception.
  • Added basic auth to Response class.
  • Added getPassword() method for basic auth password in Response class.
  • Fixed router not throwing RouterException with "Method not allowed" when using a unsupported request method.
  • Method request type are now checked on all classes in the RouterBase class.
  • Added support for alias on RouterRoute.
  • Added typo in resource (renamed class from Ressource to Resource).
  • Added optional settings parameter in most of the methods in the SimpleRouter class.
  • Urls now always returns ending slash when using getRoute() method.
  • Fixed common errors with routing.
  • Simplified getRoute method.
  • Updated documentation.

Version 1.1.1

21 Oct 13:13
Compare
Choose a tag to compare

Breaking changes

  • RouterRessources has been renamed to RouterResource.
  • SimpleRouter::ressource has been renamed to SimpleRouter::resource.

Changelog

  • Added basic auth to Response class.
  • Added getPassword() method for basic auth password in Response class.
  • Fixed router not throwing RouterException with "Method not allowed" when using a unsupported request method.
  • Method request type are now checked on all classes in the RouterBase class.
  • Added support for alias on RouterRoute.
  • Added typo in resource (renamed class from Ressource to Resource).
  • Added optional settings parameter in most of the methods in the SimpleRouter class.
  • Urls now always returns ending slash when using getRoute() method.
  • Fixed common errors with routing.
  • Simplified getRoute method.
  • Updated documentation.