Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Zend Router Laravel Package

zendframework/zend-router

Flexible HTTP router for Zend Framework, supporting literal/segment/regex paths, scheme, method, and hostname matching, with fast tree-based route combinations. Note: repository abandoned 2019-12-31; moved to laminas/laminas-router.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit: Framework-agnostic PSR-7/15 middleware stack design remains misaligned with Laravel/Symfony ecosystems. While PHP 7.3 support is added, the package still lacks modern PHP 8+ features (e.g., typed properties, attributes) and PSR-17 HTTP factories. Archived status persists, introducing compatibility risks with Laravel’s Symfony-based routing system.

Integration feasibility: Critical risk remains. Manual PSR-7 request/response handling is still required, with no Laravel-specific adapters. The removal of zend-stdlib v2 support (a legacy dependency) may break existing integrations. No Composer updates since 2019, and no security patches for known vulnerabilities (e.g., CVE-2020-12633) in underlying Zend components.

Technical risk: Extreme. PHP 7.3 support is insufficient for modern Laravel (PHP 8.1+). The package’s archival status guarantees no future updates, and dependency conflicts with Laravel’s symfony/routing or illuminate/routing are inevitable. Legacy Zend patterns (e.g., Zend\Stdlib) are incompatible with Laravel’s service container and middleware pipeline.

Key questions:

  • Why was PHP 7.3 support added without broader PHP 8+ compatibility? (Suggests abandonment of modern PHP.)
  • Does this release introduce breaking changes for existing Zend Framework 1/2 users? (Likely, given zend-stdlib v2 removal.)
  • Is there a migration path to Laminas Router or Symfony Routing? (Critical for Laravel projects.)
  • How does this interact with Laravel’s RouteServiceProvider or API resource routing?

Integration Approach

Stack fit: Incompatible with Laravel’s native stack. The package’s PSR-7/15 focus clashes with Laravel’s Symfony Routing integration. No middleware or service provider hooks exist for Laravel’s ecosystem (e.g., Route::group(), API resources, or model binding). PHP 7.3 support is irrelevant to Laravel’s PHP 8.1+ requirement.

Migration path: Immediate replacement recommended. If adopted, treat as a temporary stopgap for legacy systems. For new projects, avoid entirely—use Laravel’s built-in router or PSR-15 alternatives like fastroute/fast-route. If legacy code requires this, wrap it in a deprecated module and migrate to Laminas Router or Symfony Routing within 3 months.

Compatibility: Fails Laravel’s requirements. PHP 7.3 support is insufficient, and zend-stdlib v2 removal may break existing integrations. Conflicts with Laravel’s symfony/http-foundation (PSR-7) and psr/http-message implementations are guaranteed. No testing against Laravel’s middleware stack (e.g., Illuminate\Pipeline).

Sequencing:

  1. Do not integrate into new Laravel projects.
  2. For legacy systems, isolate in a deprecated module and prioritize migration to Laminas Router/Symfony Routing.
  3. If forced to use, freeze dependencies and patch manually (no security updates expected).

Operational Impact

Maintenance: Prohibitive. Team must:

  • Manually backport PHP 7.3+ fixes (none provided).
  • Patch security vulnerabilities (e.g., CVE-2020-12633) in zend-stdlib.
  • Resolve conflicts with Laravel’s composer.json constraints (e.g., php: ^8.1).
  • Document workarounds for missing features (e.g., no PSR-17 support).

Support: Nonexistent. Community is inactive (archived repo), and Laravel-specific issues will go unanswered. No vendor support; GitHub issues are closed. Debugging will require reverse-engineering deprecated Zend patterns.

Scaling: Unreliable. While routing logic itself may scale, unpatched edge cases (e.g., regex injection, parameter binding) could cause silent failures. No performance optimizations for PHP 8+ (e.g., JIT, opcache). High-traffic Laravel apps risk crashes due to dependency conflicts.

Failure modes:

  • Security: Unpatched vulnerabilities in zend-stdlib or PSR-7 handlers.
  • Runtime: Crashes in PHP 8+ due to missing typed properties/attributes.
  • Integration: Silent failures in Laravel’s middleware pipeline (e.g., Illuminate\Pipeline expects PSR-15 middleware).
  • Data corruption: Inconsistent parameter handling due to deprecated Zend\Stdlib behavior.

Ramp-up: Steep and risky. New engineers must:

  • Learn deprecated Zend Framework 1/2 patterns.
  • Manually resolve Laravel integration gaps (e.g., no Route::resource() support).
  • Debug undocumented workarounds for PHP 8+ incompatibilities.
  • Existing Zend devs may lack Laravel-specific context (e.g., service container, Eloquent).
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation
uri-template/tests