Documentation

Start a New Zend Framework 2 Project

XAMPP makes it easy to start developing with PHP, and Zend Framework 2 is one of the most popular PHP development frameworks. This guide walks you through the process of initializing a new Zend Framework 2 project with XAMPP.

This guide assumes that you have already downloaded and installed Git for Windows, and that the git binary is in your Windows PATH. If you don’t have Git for Windows, you can download and install it from here. It also assumes that the new Zend Framework 2 application will be accessible at the URL http://localhost/myapp/.

Within your XAMPP installation directory (usually C:\xampp), create a new directory named apps\ (if it doesn’t already exist). Then, within this new apps\ directory, create a directory to hold your Zend Framework 2 application and its related XAMPP configuration files. In this example, call the directory myapp\.

Extract the contents of the ZIP archive to the myapp\ directory. This will produce a zendframework-ZendSkeletonApplication-[xx]\ subdirectory in the myapp\ directory. Rename this newly-created subdirectory to htdocs.

This new htdocs directory will be the main working directory for your Zend Framework 2 project.

Within the myapp\ directory, create a new conf\ subdirectory.

Within the new conf\ subdirectory, use your text editor to create and populate a file named httpd-prefix.conf with the following content: