Article

Migrating Zend Framework 2 to Laminas

ZF2-specific checklist wrapping official laminas-migration: backup, global tool install, exclude, composer install, tests.

ZF2 applications are squarely in the official Laminas migration scope when they depend on ZF version 2-series packages. Use the verified tool path; do not hand-rename thousands of Zend\ imports as your primary strategy.

ZF2-focused checklist

  1. Clean git tree; tag pre-laminas-migration
  2. Composer ≥ 1.7 (composer self-update if needed)
  3. composer global require laminas/laminas-migrationnot a project require
  4. laminas-migration migrate -e data -e public/images
  5. Review diff for app class renames and config keys
  6. composer install
  7. PHPUnit + smoke routes + auth + jobs

Full narrative: Zend Framework to Laminas. Tooling deep dive: migration tooling. Source: docs.laminas.dev/migration/.

Related tools

Related reading