[6.0.0]
Note: While this is a major release, there are no breaking changes to the public API. The major version bump is due to the removal of support for PHP 8.0 and below.
This being said, there are some internal changes that may affect you if you have extended the library in any way. Please test thoroughly before upgrading.
Added
- Added full support for PHP 8.1 to 8.4.
- Ability to use a PSR-15 middleware as a controller.
- Ability to pass an array of HTTP methods to
Router::map
to create a route that matches multiple methods.- This method still accepts a string so is not a breaking change.
- Ability to add a custom key to a caching router.
Changed
- Fixes and improvements throughout for PHP 8.1 to 8.4.
Removed
- Removed support for PHP < 8.1.