Skip to content

Releases: PhpGt/Routing

December 2023 release

06 Dec 13:50
9304e14
Compare
Choose a tag to compare

What's Changed

  • Fix for dynamic sibling files by @g105b in #56
  • Nested dynamic sibling by @g105b in #60
  • Distinct files are allowed to start with underscore by @g105b in #58

Full Changelog: v1.1.1...v1.1.2

July 2023 release

20 Jul 14:26
3390be9
Compare
Choose a tag to compare

What's Changed

  • build: hard dependencies by @g105b in #20
  • Dependabot by @g105b in #22
  • build(deps): bump phpgt/servicecontainer from 1.2.0 to 1.2.1 by @dependabot in #23
  • build(deps): bump phpgt/http from 1.1.5 to 1.1.6 by @dependabot in #24
  • build(deps-dev): bump phpstan/phpstan from 1.8.4 to 1.9.4 by @dependabot in #29
  • Star accept header (/) matches the first route by @g105b in #30
  • Update build deps and PHPStorm analysis tweaks by @g105b in #53

New Contributors

Full Changelog: v1.1.0...v1.1.1

v1.1.0

21 Feb 22:58
72e6b4f
Compare
Choose a tag to compare
  • feature: deeper dynamic pages by @g105b in #14
  • feature: Assembly::containsDistinctFile by @g105b in #16

Full Changelog: v1.0.5...v1.1.0

Accept */* if empty accept header

31 Jan 13:58
Compare
Choose a tag to compare

This minor patch is being released to help in situations where WebEngine is being called from a cURL request, but the Accept header is being sent empty. Specifically this helps the Goutte test runner for Behat scripts.

Get Dynamic URLs from DynamicPath object

28 Nov 15:51
Compare
Choose a tag to compare

This minor release introduces DynamicPath::getUrl() which returns a URL string containing the dynamic parts, indicated with an @ character.

Magic paths match current directory

09 Nov 13:00
Compare
Choose a tag to compare

This minor patch release makes Magic Path matching consistent with WebEngine v3's usage: if there's a magic path in the uri-matched directory, it will continue to be matched. Only directories above magic paths will not be matched.

Dynamic path improvement

05 Nov 14:26
7b5080b
Compare
Choose a tag to compare

In this minor patch release, if the dynamic path is requested without a parameter, the deepest path variable is returned. This is especially useful for paths with only a single dynamic path variable.

Stable release

02 Oct 15:09
Compare
Choose a tag to compare

Since being extracted from WebEngine's v3 release, this repository has been routing many WebEngine v4 applications. This stable release is being made after deploying an application to production this week, with no changes required to Routing functionality.

Have fun, and stay productive!

File Matching & Assembly components

23 Jun 15:10
Compare
Choose a tag to compare
Pre-release

Included in this pre-release are the following features:

  • Path and Assembly components are introduced.
  • Better type safety throughout.
  • HTTP Content-type negotiation.
  • Stream wrapper ensures files have a namespace.
  • FileMatcher: PathMatcher for expanding a directory of matching files.
  • FileMatcher: BasicFileMatch.
  • FileMatcher: MagicFileMatch

Fully implemented routing

02 Jun 09:30
Compare
Choose a tag to compare
Pre-release

This release marks the completion of the first main feature, and this repository's namesake: routing.

A PSR-7 request can be provided to the router, along with an object with method attributes, and the request will be matched against the available attributes in order to execute the correct method.

Next up is providing a dynamic path extractor and providing a mechanism for building the correct Assembly objects.