Updated: 12 November 2026 · Applies to: Laminas components and Mezzio 3.28 with Composer 2.8 on PHP 8.4 (tested on Debian 13); laminas-mvc 3.8

Zend Framework no longer exists under that name: it became the Laminas Project (under the Linux Foundation) in 2020, and Zend Framework 1 and 2 receive no updates at all. Laminas is not something you install on the server; you add its packages to your own PHP project with Composer, for example:

composer require laminas/laminas-validator

Before you start a new project, note one important change: the Laminas project has put Laminas MVC (the full-stack framework that replaced the Zend Framework MVC) into security-only maintenance. According to the Laminas project, it receives security patches but no new features or bug fixes until 31 December 2028, when PHP 8.4 security support ends, and it will not be updated for PHP 8.5. The project recommends Mezzio for new applications. The individual Laminas components (validators, forms, filters, database, mail and so on) are still actively developed.

What to use for what

  • New application: Mezzio, the PSR-15 middleware framework from the same project.
  • Existing Zend Framework 2 or 3 application: migrate it to Laminas MVC, which keeps the same structure under new names, then plan a move to Mezzio before the end of 2028.
  • A single feature in any PHP project (form validation, input filtering, a mail or cache component): install just that Laminas component.

Step 1: check PHP and Composer

Connect by SSH, or use Advanced > Terminal in cPanel if your account has it, and check both versions:

php -v
composer --version

Output on our test server:

PHP 8.4.27 (cli) (built: Oct 21 2026 07:53:46) (NTS)
Composer version 2.8.8 2025-04-04 16:56:46

If composer is not found, ask your hosting support whether Composer is available on the server. On your own Debian or Ubuntu VPS you can install the distribution package (it pulls in the PHP command line too):

apt install composer php-xml php-mbstring php-intl unzip

On cPanel, the PHP version your website uses is set per domain in Software > MultiPHP Manager, and the command line can use a different version. See How to Check Your PHP Version in cPanel and Change It.

Step 2a: install a single Laminas component

  1. Go to your project folder (for a cPanel account, keep the project outside public_html where you can):
    cd ~/myproject
  2. Require the component:
    composer require laminas/laminas-validator
  3. Load Composer's autoloader and use it. Save this as test.php:
    <?php
    require __DIR__ . '/vendor/autoload.php';
    
    use Laminas\Validator\EmailAddress;
    
    $validator = new EmailAddress();
    var_dump($validator->isValid('alice@example.com'));
    var_dump($validator->isValid('not-an-email'));
    print_r($validator->getMessages());
  4. Run it:
    php test.php

Output with laminas-validator 3.20.0:

bool(true)
bool(false)
Array
(
    [emailAddressInvalidFormat] => The input is not a valid email address. Use the basic format local-part@hostname
)

Step 2b: start a new application with Mezzio

Create the project skeleton:

composer create-project mezzio/mezzio-skeleton myapp

Run without --no-interaction, the installer asks which router, dependency container and template engine to use. In our test (Mezzio 3.28.1) the skeleton's composer.json allowed PHP 8.2, 8.3, 8.4 and 8.5. Try it with PHP's built-in server, listening only on your own machine:

cd myapp
php -S 127.0.0.1:8080 -t public

The skeleton includes a test route, /api/ping, which returned {"ack":1794452588} (a timestamp) in our test. On a web server, point the domain's document root at the project's public folder, not the project root, so that vendor, config and src are never reachable from the web.

Step 2c: keep an existing Laminas MVC application running

Laminas MVC still installs with Composer:

composer require laminas/laminas-mvc

In our test this installed laminas-mvc 3.8.0 on PHP 8.4, and Composer warned that some of its dependencies are abandoned:

Package laminas/laminas-config is abandoned, you should avoid using it. No replacement was suggested.
Package laminas/laminas-json is abandoned, you should avoid using it. No replacement was suggested.
Package laminas/laminas-loader is abandoned, you should avoid using it. No replacement was suggested.

Keep such a site on PHP 8.4 (do not switch it to 8.5 in MultiPHP Manager), apply security releases with composer update, and plan the move to Mezzio.

Old Zend Framework code

Code that still uses Zend\ namespaces needs migrating: the Laminas project provides the laminas-migration tool, which rewrites package names and namespaces to Laminas\. According to the project, install it and run it in the project folder:

composer global require laminas/laminas-migration
laminas-migration migrate

Then run composer install and test the result on a copy of the site first. Zend Optimizer and Zend Guard are unrelated, older products; for those see How to install Zend Optimizer?.

Official documentation: Laminas Project on GitHub.

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Managed cPanel VPS

cPanel included; we handle updates, security and monitoring.

Server management

on-demand administration, hardening, migrations and monitoring.

Was this answer helpful?

Still stuck? Open a ticket