piotrpolak/conditional-routing-bundle
Symfony bundle that adds conditional routing, letting you define routes that match only when configured conditions are met. Useful for feature flags, environment-specific endpoints, and request-aware route selection, with simple routing configuration and integration with Symfony's routing component.
Verdict up front: this is a Symfony bundle, not a Laravel package. The Laravel-specific implementation and migration notes attached to this submission are a template mismatch — a TPM should treat them as unreliable and re-baseline the evaluation against the actual target stack.
RouteServiceProvider guard rather than installing this dependency.composer.json constraints allow the target PHP and Symfony versions. A package last released 2018‑10‑25 is pre‑Symfony Flex, pre‑PHP 8, and almost certainly pre‑return static function service config conventions. Expect an integration spike to surface constraint conflicts immediately.condition:, requirements:, custom route loaders, and kernel.request listeners natively. The feature set described (request-aware conditional route loading) is a ~50–100 line internal listener in a current app. Importing an unmaintained third-party bundle for this is a bad trade.Piotrpolak → PiotrPolak (PSR‑4 case sensitivity on Linux) still apply to any consuming code, config, or docs?composer.json pinned to ^1.0; register in AppKernel/bundles.php; publish/author config; express conditions in bundle config; verify existing routes still resolve unchanged before enabling any conditional behavior.Route::middleware(...)->group(...) guard in Laravel, or a kernel.request listener / route condition in Symfony. Compare effort against the integration spike; the internal option almost certainly wins.composer why-not against the app's lockfile, and a smoke test of conditional vs unconditional route sets.composer.json and tags.Piotrpolak → PiotrPolak PSR‑4 case change on Linux.How can I help you explore Laravel packages today?