Skip to content

Releases: skipperbent/simple-php-router

Version 5.3.0.4

06 May 15:37
f085134
Compare
Choose a tag to compare
  • 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.

Version 5.3.0.3

24 Apr 18:08
9b8843a
Compare
Choose a tag to compare
  • Reverted exception handling to old behavior (issue: #660)

Version 5.3.0.2

21 Apr 09:38
ad765b9
Compare
Choose a tag to compare
  • InputItem: php8.1 deprecated warning- added returnTypeWillChange to offsetGet (issue: #657).

Version 5.3.0.1

08 Apr 18:01
847cb3e
Compare
Choose a tag to compare
  • 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.

Version 5.3.0.0

07 Apr 13:41
b937b61
Compare
Choose a tag to compare
  • [[!!!] 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.

Version 5.2.0.1

02 Apr 01:24
fadb783
Compare
Choose a tag to compare
  • Fixed Response not initialized + incorrect phpDoc.

5.2.0.0

02 Apr 01:20
8477ea1
Compare
Choose a tag to compare

[!!!] 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.

5.1.1.0

30 Mar 14:27
4121011
Compare
Choose a tag to compare
  • Response: Fixed SESSION not shutdown correctly when using redirect.
  • [!!!] Disabled multiple route rendering by default: please enable this feature manually using SimpleRouter::enableMultiRouteRendering(true).

Version 5.1.0.0

25 Mar 02:21
5dbfc3d
Compare
Choose a tag to compare
  • Feature: added support for slash in parameters (see readme).
  • Route: Fixed hardcoded param modifier.
  • Route: optimisations.
  • Updated Readme.

Version 5.0.0.3

13 Feb 13:07
0aea867
Compare
Choose a tag to compare
  • Fixed CSRF-token exception not triggering custom exception-handlers.
  • Updated PHPStan.