How to install Zend Framework 2 in xampp

Here are some new features find in Zend Framework 2.
Some highlights:
1.An entirely re-written event-driven MVC layer
2.Components practice dependency injection, supported by our Service Locator and DiC components
3.A powerful module management system
4.An EventManager, for writing event-driven systems, as well as for creating cut points in your software for introducing cross-cutting concerns.
5.A new view layer, architected around analyzing the request and generating a suitable response, be it plain old HTML, or Atom feeds or JSON.

Steps to install ZF2 in xampp .

1) Download the xampp server from apache website.

https://www.apachefriends.org/download.html
xampp


2) Install the xampp server wherever you like in your local directory.And the start Apache Serer
and Mysql service from the xampp control panel.

xampp_start
3)Create the new folder in the directory and rename folder zend(whatever you like).
C:\xampp\htdocs\ or in your directory where you install the xampp.

createfolder

 

4)Download and Install the GIT app from the link http://git-scm.com.

install-scm
5)Download and Install the Composer from the link https://getcomposer.org/download

 

mPasswordChangeQuestion

During the installation of Composer the Path of php.exe should be provided.
phploc
In our case: C:\xampp\php\php.exe

6)Right click the zend folder and click the Git Bash.
Enter the following address.
git clone git://github.com/zendframework/ZendSkeletonApplication.git
Then Press Enter.
Necessary file will be download in the folder ZendSkeletonApplication

skeleton

 

7) Copy the all the files and folder from ZendSkeletonApplication folder and paste inside the zend folder and delete the ZendSkeletonApplication.
(Moving the files from outside the ZendSkeletonApplication folder )

cut
8) Right Click the zend Folder and click the Use Composer Here.And Enter the following address:
C:\xampp\php\php.exe composer.phar self-update and Press Enter.
C:\xampp\php\php.exe composer.phar install and Press Enter.
getcomposer
After above step necessary files are downloaded for development.

9) Now go the browser and enter the url http://localhost/zend/public

If you see above the installation is successful.
success

 

Please let me know if u get stuck in above steps .Feel free to post your feed backs.

 

Leave a Reply

Your email address will not be published. Required fields are marked *