Article

Laminas MVC for Teams Coming from Zend Framework

How Laminas MVC maps from ZF2/ZF3 mental models: modules, controllers, configuration, and post-migration verification.

Laminas MVC is the maintained successor shape of the ZF2/ZF3 MVC stack. After laminas-migration, your modules should look familiar—package names and namespaces are the headline change, not a brand-new architecture textbook.

// MODERN controller
namespace Application\Controller;

use Laminas\Mvc\Controller\AbstractActionController;
use Laminas\View\Model\ViewModel;

final class IndexController extends AbstractActionController
{
    public function indexAction(): ViewModel
    {
        return new ViewModel(['status' => 'ok']);
    }
}
// LEGACY equivalent used Zend\Mvc\Controller\AbstractActionController
  • Clear config caches after deploy
  • Re-test route → controller service names
  • Confirm view helpers registered under new namespaces

Hub: Laminas. DI: ServiceManager. History: ZF history.

Related tools

Related reading