Skip to content

Releases: phpdevcommunity/php-router

Feature additions, route constraints, and unit tests

24 Apr 10:20
Compare
Choose a tag to compare
  • Introduced new where constraint methods including whereAnything(), whereTwoSegments(), whereDate(), whereYearMonth(), whereEmail(), whereUuid(), and whereBool() 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

01 Apr 15:29
Compare
Choose a tag to compare

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

08 Oct 07:45
Compare
Choose a tag to compare

Rename library from devcoder-xyz/php-router to phpdevcommunity/php-router and update namespaces.

Added Where Constraints and Improved Documentation

31 Mar 20:39
Compare
Choose a tag to compare

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

28 Nov 12:10
Compare
Choose a tag to compare

add static method to create new instance of Route and improve code

Change type argument of constructor Urlgenerator

18 May 15:13
Compare
Choose a tag to compare
1.2.1

 change readme and improvement Urlgenerator class

add more options

07 Mar 16:34
Compare
Choose a tag to compare
1.2.0

refactoring code