Zend framework 1 article

Home >> Zend framework 1 >>

  Installation of Zend framework 1

Installing Zend Framework is very simple. Once you have downloaded and extracted the framework, you should add the /library folder path in the include path of php.ini and you are free to keep those extracted folders anywhere in your system.

I have installed my Zend Framework 1 in WAMP server and accordingly I will explain it.
Step 1: - Download the Zend Framework and extract it.

Step 2:- Once you done with extraction just open the folder and verify the folders, it will look like below image.

Inside /bin folder you will find 4 files.
1. classmap_generator.php
2. zf.bat
3. zf.php
4. zf.sh

Inside /library folder you will find /Zend folder and again under that you can see many folders.

Note :- This step just to verify whether you have downloaded the correct Zend framework zip file or not.

Step 3: - Once you verified your downloaded Zend framework zip file (Step 2) then Open your php.ini file and add include path.

Since I am installing Zend framework on WAMP server, I have extracted the Zend framework zip and named as "zf1-configuration" and placed it in /www folder. 

Now you need to add /library path in php.ini like below.

// library folder path in php.ini
; Windows: "\path1;\path2"
include_path = ".;C:\wamp\zf1-configuration\library"  

Step 4:- Set environment variable for /bin folder of Zend, because we can use Zend framework from the command line. In my case /bin folder path will be like below.

// bin folder path

Step 5:- Open cmd and type zf to check that the configuration is proper or not.

Step 6:- Restart WAMP server.

Congratulations you have successfully completed Zend framework configuration, let's create zend framework project now.

Creating First Project

For creating project, first you have to navigate to server root directory and then open cmd and type zf create project-name (It's zend command to create project), this "project-name" you can keep any name as you wish, but I have used "zf1app". See below example.

c:\wamp\www> zf create project zf1app
Creating project at C:/wamp64/www/zf1app
Note: This command created a web project, for more information setting up your VHOST, please see docs/README
Testing Note: PHPUnit was not found in your include_path, therefore no testing actions will be created.

Now you go to /www folder of WAMP server and you will find one "zf1app" folder. To check that the installation is proper or not.  Try to open the home URL http://localhost/zf1app/public/, you will see the following screen in the browser, which indicates that Zend Framework 1 has installed successfully.



really very good.thanks a lot brother.

  3 months ago      aijaz ahmad      

Write your comment now