Skip to content

Releases: parable-php/routing

Parable Routing 1.0.0

12 Mar 08:51
Compare
Choose a tag to compare

Just a re-release locking the interface in place. First final release!

Parable Routing 0.4.0

11 Mar 13:45
Compare
Choose a tag to compare
Parable Routing 0.4.0 Pre-release
Pre-release

Changes

  • Add static analysis using psalm.
  • Exception has been renamed to RoutingException for clarity.

Parable Routing 0.3.1

20 Jan 19:48
Compare
Choose a tag to compare
Parable Routing 0.3.1 Pre-release
Pre-release

0.3.1

Fixes

  • With php8 come new challenges -- ?string values need to be set to = null by default.

Parable Routing 0.3.0

20 Jan 19:38
Compare
Choose a tag to compare
Parable Routing 0.3.0 Pre-release
Pre-release

0.3.0

Changes

  • Dropped support for php7, php8 only from now on.

Parable Routing 0.2.3

15 Apr 10:56
Compare
Choose a tag to compare
Parable Routing 0.2.3 Pre-release
Pre-release

0.2.3

Bugfix

  • Small fix in Router, where while replacing parameters in a url we're matching would not check if the original url part was actually a parameter.

Parable Routing 0.2.2

13 Apr 12:13
Compare
Choose a tag to compare
Parable Routing 0.2.2 Pre-release
Pre-release

0.2.2

Changes

  • Added Router::add($httpMethods, $name, $url, $callable, $metadata), which does the same as addRoute() but will create a new Route instance for you. Utility function, but nice.
  • Added Route::hasMetadataValues(): bool.

Parable Routing 0.2.1

07 Apr 20:32
Compare
Choose a tag to compare
Parable Routing 0.2.1 Pre-release
Pre-release

0.2.1

Changes

Well, that had unintentional effects, didn't it? The whole idea of named routes was that names were unique. So requiring an HTTP method to work with them that way is against that exact notion.

The following methods obviously don't require passing in the HTTP method:

  • getRouteByName(string $name): ?Route
  • buildRouteUrl(string $name, array $parameters = []): string

Ahh, the beauty of pre-release software 😅

Parable Routing 0.2.0

07 Apr 20:06
Compare
Choose a tag to compare
Parable Routing 0.2.0 Pre-release
Pre-release

0.2.0

Changes

Due to how it's possible to add a route more than once, for multiple methods, storing them by url turned out to be a problem. As such, the following methods now require an HTTP method to be passed:

  • getRoutes(string $httpMethod): Route[]
  • getRouteByName(string $httpMethod, string $name): ?Route
  • buildRouteUrl(string $httpMethod, string $name, array $parameters = []): string

The unintended but welcome benefit of this is that matching parametered routes is now significantly faster, since we can immediately ignore all irrelevant HTTP methods.

Parable Routing 0.1.1

28 Mar 08:26
Compare
Choose a tag to compare
Parable Routing 0.1.1 Pre-release
Pre-release

0.1.1

Changes

  • Route-related Metadata has been added. Pass an array as the last parameter when creating a new Route to use it. You can then use $route->getMetadataValue('name') to retrieve the data. This data can be altered during runtime.

Parable Routing 0.1.0

08 Mar 15:20
Compare
Choose a tag to compare
Parable Routing 0.1.0 Pre-release
Pre-release

0.1.0

Changes

  • First release.