How to Install Zend Framework

How to Install Zend Framework

Zend Framework is a PHP framework which is open source and is used for developing web applications with PHP 5 or higher versions. Zend Framework is based on Object-Oriented Programming approach. To know more about this framework read our previous article An Introduction to Zend Framework .

You can install Zend Framework in two ways. They are as follows –

  1. Manual installation
  2. Composer based installation

1. Manual Installation

Download the latest version of Zend Framework by visiting the following link –

2. Composer based installation

STEP – 1 : The easiest way to create a new Zend Framework project is to use Composer. If you don’t installed composer yet, then please install it. This is the most preferred method to install the latest version of Zend Framework.

To install all the components of this Framework, you can use the following Composer command –

$ composer require zendframework/zendframework

This will install all 61 packages required in composer.json.

Alternately, If you want to install each module / component of this framework individually you are free to do so by using the following composer command. For example, to install the MVC component of the Zend Framework, use the following composer command –

$ composer require zendframework/zend-mvc

STEP – 2 : After installation of Composer you can create your new Zend Framework project by using the following command:

$ composer create-project zendframework/skeleton-application path/to/install

After the above command runs successfully you have the option to choose minimal install and if you want only minimal install enter y as command. this will install your minimal package of Zend framework.

STEP – 3 : Once you created your project Successfully, you can test it out immediately using PHP’s built-in web server by using the following command:

$ composer serve

STEP – 4 : If all steps followed correctly this will start the PHP cli-server on port 8080, and bind it to all network interfaces.

Open url: localhost:8080 in browser, If the above screen is shown it means you have installed the Zend Framework successfully.

Back to Top