Feat: PSR-7 Uri input/output and RouteBuilder#5
Merged
Conversation
Member
ralflang
commented
Mar 12, 2026
Add secondary/legacy route feature that allows routes to match URLs without being used for generation. Useful for supporting alternative or legacy URLs without polluting the Named Route space with duplicates. Also provide a simple Route Builder interface for more robust route definition. A new Route Analyzer tool detects some cases of unreachable routes through conflicts. Design philosophy emphasizes no false positives. Incremental approach. New features are only available in the src/ branch and through the PSR-7 request interface. Legacy Horde_Controller interface is for BC only.
Modernize Routes encoding to match contemporary PHP routers (Symfony, Laravel, FastRoute). Remove UTF-8→ISO-8859-1 conversion, rely on PHP 8 native UTF-8 support. All routes now get an automatically generated name if no name was provided. test(routes): add comprehensive PSR-style API test coverage feat: Add native PSR-7 UriInterface support for modern PHP interoperability. Routes now provides *Uri() methods returning Uri objects alongside existing string methods, maintaining 100% backward compatibility.
ralflang
added a commit
that referenced
this pull request
Mar 12, 2026
Release version 3.0.0-alpha8 test: convert leftover secondary route tests to PSR-style API Feat: PSR-7 Uri input/output and RouteBuilder (#5) feat(routes): Secondary Routes support and Route Analyzer fix: static analyzer found potentially undefined variables Merge pull request #2 from horde/feat/matcher-environ-psr7 feat(matcher): auto-set Request Method Verb from PSR-7 request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.