Skip to content

Releases: Ahmard/quick-route

v3.9.0

11 Feb 00:36
b363300
Compare
Choose a tag to compare
  • Route::middleware() now accepts array of middlewares to help define multiple middlewares to a route
  • PHP 8.1 support
  • Dependencies update
  • Author info update
  • composer.lock file removal

v3.8.3

04 Dec 21:34
Compare
Choose a tag to compare
  • PHP 8.1 support

v3.8.2

06 Aug 16:11
Compare
Choose a tag to compare
  • RouteData::getController() added to alias getHandler()

v3.8.1

22 Jun 18:53
fa37f1d
Compare
Choose a tag to compare
  • Method param default value change, Collector::cache(bool $hasClosures = false)
  • PHP warning fixed being thrown when cached route is marked as "hasClosures" and the route does not have closures: "PHP Warning:
    Undefined array key "handler" in quick-route/src/Router/Cache.php on line 33
  • PHPStan error fixed: "Parameter #1 $name of method QuickRoute\Crud::parameter() expects string, string|null given in Crud.php at line 85."

v3.8.0

08 Jun 13:40
fe6f843
Compare
Choose a tag to compare
  • Crud::create() added for crud routes generation
  • Route::resource() route name does not contain prefix value anymore.
  • RouteInterface::where...() methods parameter rename
    • This change is made with the knowledge of how it will impact code written PHP >= 8.0.
    • This change is made to use named param easier, as "param" is more convenient to use than "parameterName"

v3.7.3

19 May 11:25
eb7e18f
Compare
Choose a tag to compare
  • RouteInterface::match() will now generate route name based on given request method
  • README.md & CHANGELOG.md update

v3.7.2

19 May 04:07
e55b2ad
Compare
Choose a tag to compare
  • RouteData::getRegExp() added - This will return regular expression defined within the route's prefix/path
  • Collector::route() now returns instance of
  • CHANGELOG.md update

v3.7.1

19 May 03:56
ad467d3
Compare
Choose a tag to compare
  • DispatchResult::route() moved to Collector::route()
  • DispatchResult::uri() moved to Collector::uri()
  • README.md & CHANGELOG.md update

v3.7.0

19 May 03:39
ceb3981
Compare
Choose a tag to compare
  • RouteInterface::matchAny(array $methods, array $paths, $handler): RouteInterface - Generate multiple routes using multiple method and path but single handle
  • DispatchResult::route(string $routeName): ?array - This is to find route by its name
  • DispatchResult::uri(string $routeName): ?string - Generate route uri using route's name

v3.6.0

19 May 00:35
23ee995
Compare
Choose a tag to compare
  • RouteInterface::where(string|array $param, ?string $regExp = null): RouteInterface
  • RouteInterface::resource() now accepts four parameters, you can now provide custom url id parameter name
  • Regular expression bug related to whereNumber(), whereAlpha(), whereAlphanumeric() methods has been fixed
  • Code reformat