Releases: phpdevcommunity/php-router
Releases · phpdevcommunity/php-router
Feature additions, route constraints, and unit tests
- Introduced new
where
constraint methods includingwhereAnything()
,whereTwoSegments()
,whereDate()
,whereYearMonth()
,whereEmail()
,whereUuid()
, andwhereBool()
for route parameter validation. - Implemented flexible string matching and constraint handling for route parameters.
- Added comprehensive unit tests for route matching using various complex constraints, including base64-encoded random strings.
- Enhanced route handling with new pattern matching logic for complex and multi-segment URIs.
- Updated documentation with usage examples for new route constraints and unit tests.
Fix route matching for different HTTP methods
Resolve issue where routes with same path but different methods weren't
handled correctly. Added proper MethodNotAllowed exception throwing.
Rename library from devcoder-xyz/php-router to phpdevcommunity/php-router and update namespaces
Rename library from devcoder-xyz/php-router to phpdevcommunity/php-router and update namespaces.
Added Where Constraints and Improved Documentation
Added Where Constraints and Improved Documentation
- Added whereNumber, whereSlug, whereAlphaNumeric, and whereAlpha methods to the Route class for defining constraints on route parameters
- Updated documentation to explain the usage of Where constraints in the Route class
- Overall improvement of documentation for better understanding and clarity
add static method to create new instance of Route
add static method to create new instance of Route and improve code
Change type argument of constructor Urlgenerator
1.2.1 change readme and improvement Urlgenerator class
add more options
1.2.0 refactoring code