laminas/laminas-zendframework-bridge
Provides compatibility bridge for Laminas to ease migration from Zend Framework. Maps legacy Zend class names to Laminas equivalents via autoloading, allowing existing Zend-based apps and libraries to run with minimal changes during upgrades.
composer require laminas/laminas-zendframework-bridgezendframework/zend-mvc with laminas/laminas-mvc—then run your app. Existing use Zend\... references in code continue to work thanks to namespace re-mapping.use Zend\... statements to use Laminas\... as you touch files. The bridge ensures both old and new namespaces resolve correctly during the transition.laminas/laminas-db while still using laminas/laminas-mvc), with the bridge resolving autoloading and class name conflicts behind the scenes.zf1 components) and Laminas packages, the bridge prevents fatal class-redeclaration errors by ensuring only one canonical class per FQCN is loaded.Zend\ServiceManager and Laminas\ServiceManager) to validate full compatibility during refactoring.require vendor/autoload.php more than once), remapping may be skipped. Always include autoloader once, early.Zend\* aliases. Add explicit @method or @property annotations, or configure PHPStan to treat Zend\* as aliases for Laminas\*.Zend\Navigation keys in config.global.php). Document and replace these manually or via script after verifying runtime compatibility.Zend\* references are replaced—keep composer require --dev codeception/module-zendframework only if using legacy acceptance helpers.trigger_error() usages for deprecated ZF APIs) may still require code updates despite the bridge’s best efforts. Review Laminas’ migration guide alongside.How can I help you explore Laravel packages today?