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

Laminas Loader Laravel Package

laminas/laminas-loader

Abandoned Laminas component that provided autoloading and plugin loading utilities for PHP applications. No further development is planned; check Laminas TSC minutes for details and consider migrating to supported alternatives.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • PHP Version Modernization: Enables seamless adoption of PHP 8.4+ in Laravel projects without disrupting existing autoloading infrastructure, aligning with Laravel’s long-term PHP version roadmap (e.g., Laravel 11+).
  • Legacy System Migration: Facilitates transitions from Zend Framework/Laminas to Laravel by providing backward-compatible autoloading strategies for hybrid or phased migrations.
  • Performance Optimization: Offers fine-grained control over class loading (e.g., ClassMapAutoloader) for high-traffic Laravel applications where PSR-4 alone may introduce overhead.
  • Dependency Rationalization: Reduces composer dependency bloat by consolidating autoloading logic into a single, maintained package (vs. custom scripts or multiple loaders).
  • Cost-Effective Scaling: Eliminates the need to build/maintain custom autoloading solutions, freeing engineering resources for higher-value features.

When to Consider This Package

  • Adopt if:

    • Your Laravel project requires custom autoloading logic beyond PSR-4 (e.g., dynamic class generation, legacy namespace support).
    • You’re migrating from Zend Framework/Laminas and need to preserve existing autoloading behavior during transition.
    • Your application uses PHP 8.4+ and seeks a lightweight, dependency-managed autoloader with minimal maintenance.
    • You prioritize consistency across multiple PHP projects (e.g., shared libraries using Laminas Loader).
    • Your team lacks bandwidth to optimize or debug custom autoloading solutions.
  • Look elsewhere if:

    • Your project uses only PSR-4 autoloading (Laravel’s default composer/class-loader is sufficient).
    • You require active development (this package is abandoned; last release in 2025 with no future updates).
    • Your environment enforces strict dependency constraints (e.g., no external autoloaders allowed).
    • You need advanced features like autoloading from non-filesystem sources (e.g., databases, APIs)—this package lacks such capabilities.
    • Your Laravel version pre-dates PHP 8.1 (this package drops support for older PHP versions).

How to Pitch It (Stakeholders)

For Executives: "This package lets us upgrade to PHP 8.4—critical for security and performance—without rewriting our autoloading system. It’s a low-risk, high-reward move: we avoid technical debt from custom solutions while maintaining compatibility with our existing Laravel stack. Since it’s part of the Laminas ecosystem (backed by the PHP Foundation), we’re not relying on a one-person project. The cost? Minimal—just a composer require and minor config changes. The payoff? Future-proofing our PHP version support with zero disruption."

For Engineering: *"The laminas/laminas-loader package (v2.12.0) gives us two key advantages:

  1. PHP 8.4 Support: The relaxed constraints let us test and adopt newer PHP versions without breaking changes.
  2. Custom Autoloading: If we need to load classes outside PSR-4 (e.g., legacy namespaces or dynamic classes), this provides a battle-tested alternative to rolling our own solution.

How to use it:

  • Add to composer.json:
    "require": {
        "laminas/laminas-loader": "^2.12"
    }
    
  • Configure in bootstrap/app.php (if replacing default autoloader):
    $loader = new \Laminas\Loader\AutoloaderFactory();
    $loader->registerAutoloaders();
    

Caveats:

  • Not a drop-in replacement for Laravel’s autoloader—use only for specific cases.
  • Abandoned project: No future updates, but stable for our needs.
  • Test thoroughly in staging before production.

Alternatives:

  • Stick with Laravel’s default if PSR-4 suffices.
  • Use Symfony’s ClassLoader if you need more active maintenance.

Recommendation: Pilot in a non-critical module first to validate performance and compatibility."*

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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky