Skip to content

Releases: rammewerk/router

0.9.82

03 Feb 14:48
Compare
Choose a tag to compare
  • New lookup/matching algorithm for faster route resolution
  • Dependency resolver is no longer required, but we still recommend it!
  • Added support to disable reflection for added routes, which can improve performance when reflection isn't needed. $router->add(...)->disableReflection();

Full Changelog: 0.9.5...0.9.82

0.9.5

30 Jan 09:37
Compare
Choose a tag to compare
  • Simplified API – Removed the ability to override the default method in class-based routes. With attribute support, this is now the preferred approach for customizing default methods instead of relying on index.
  • Performance Enhancements – Refactored core logic for better efficiency and faster route resolution.
  • General Improvements – Minor optimizations and bug fixes for improved stability.

0.9.4

29 Jan 11:22
Compare
Choose a tag to compare
  • Improved performance throughout the codebase
  • New improved radix tree implementation
  • Introduced cached parameter resolver
  • Removed reflection from parameter resolver cache to allow for serialization
  • Utilizing the radix tree to resolve class methods and attributes
  • Caching up reflection instances
  • Added support for non-backed enums, through matching on case name
  • Added multiple new unit tests, ensuring the code is solid
  • Added a BETA version of the adapter "MethodAwareRouter" which allows for validating route based on HTTP method. Please note that this is still in BETA and may change in the future. Any feedback is welcome!

0.9.3

27 Jan 11:35
Compare
Choose a tag to compare
  • Added support for enums
  • Increased performance by replacing preg_match() with radix tree
  • Optimized the way context and paths are handled, string based instead of array based. Benchmarked everything changes to make sure there was improvement.
  • Better folder structure
  • Added tests and organized tests
  • Added a simple benchmark tester to help compare different implementations
  • Implemented a RouterConfigurationException class to make it more clear what went wrong

0.9.2

25 Jan 00:22
Compare
Choose a tag to compare
  • Changed method() to classMethod() to avoid confusion with HTTP methods
  • Support for Route attributes

0.9.1

24 Jan 14:08
Compare
Choose a tag to compare
  • Deferred regex generation until needed

0.9.0

24 Jan 13:28
Compare
Choose a tag to compare
  • Huge refactoring of the codebase, making it more maintainable and easier to extend.
  • Please see the README for more information.

0.8.0

19 Dec 20:19
Compare
Choose a tag to compare

PHP 8.4 support

0.7.0

04 Sep 20:44
Compare
Choose a tag to compare
Update

0.6.5

24 Nov 14:41
Compare
Choose a tag to compare

Fixed issue with interface dependencies on routes.