- Fixed: Fix
trigger404()
to work without custom 404 handler (#169) (@mjoris)
- Added: Ability to set multiple 404s, depending on the route prefix (@uvulpos)
- Fixed: Correctly invoke static/non-static class methods (@bramus)
- Fixed: Fix PHP 5.3 support (@cikal)
- Fixed: Fix arguments in demo (@khromov)
- Fixed: Fix #72 (@acicali)
- Added: PHP 7.4 support (@ShaneMcC)
- Added: Ability to externally trigger a 404 (@PlanetTheCloud)
- Fixed: Fix bug where Cyrillic charges and Emojis in placeholder were urlencoded (see #80) (@bramus)
- Fixed: Make
bramus/router
play nice with situations where the entry script and entry URLs are not coupled (see #82) (@bramus) - Changed: Changed visibility of
getBasePath
andgetCurrentUri
to beingpublic
(@bramus)
- Added: Support for Cyrillic chars and Emoji in placeholder values and placeholder names (see #80) (@bramus)
- Added:
composer test
shorthand (@bramus) - Added: Changelog (@bramus)
- Changed: Documentation Improvements (@bramus)
- Added: Extra Tests (@bramus)
- Changed: Documentation Improvements (@artyuum)
- Added: Support
Class@method
callbacks inset404()
(@bramus) - Changed: Refactored callback invocation (@bramus)
- Changed: Documentation Improvements (@artyuum)
- Changed: Documentation Improvements (@bramus)
- Added: Support route matching using “placeholders” (e.g. curly braces) (@ovflowd)
- Added: Default Namespace Capability using
setNamespace()
, for use withClass@Method
calls (@ovflowd) - Added: Extra Tests (@bramus)
- Bugfix: Make sure callable are actually callable (@ovflowd)
- Demo: Added a multilang demo (@bramus)
- Changed: Documentation Improvements (@lai0n)
- Added: Return
true
if a route was handled,false
otherwise (@tleb) - Added:
getBasePath()
(@ovflowd) - Added: Support
Class@Method
calls (@ovflowd) - Changed: Tweak a few method signaturs so that they're protected (@tleb)
- Changed: Documentation Improvements (@tleb)
- First 1.x release
-
Initial release with suppport for:
- Static and Dynamic Route Handling
- Shorthands:
get()
,post()
,put()
,delete()
, andoptions()
- Before Route Middlewares / Before Route Middlewares:
before()
- After Router Middlewares / Run Callback
-
Added: Optional Route Patterns
-
Added: Subrouting (mount callables onto a subroute/prefix)
-
Added:
patch()
shorthand -
Added: Support for
X-HTTP-Method-Override
header -
Bugfix: Use the HTTP version as found in
['SERVER_PROTOCOL']
-
Bugfix: Nested Subpatterns / Multiple Matching (@jbleuzen)