ZendSkeletonApplication
Easy . from commamnd line , cmd.exe , msdos command line
php composer.phar self-update
php composer.phar install
Your browser does not support iframes.
https://github.com/zendframework/ZendSkeletonApplication
Getting started: A skeleton application¶
In order to build our application, we will start with the ZendSkeletonApplication available on github. Use Composer (http://getcomposer.org) to create a new project from scratch with Zend Framework:
We can now move on to the web server setup.
Using the Apache Web Server¶
You now need to create an Apache virtual host for the application and edit your hosts file so that http://zf2-tutorial.localhost will serve index.php from the zf2-tutorial/public directory.
Setting up the virtual host is usually done within httpd.conf or extra/httpd-vhosts.conf. If you are using httpd-vhosts.conf, ensure that this file is included by your main httpd.conf file. Some Linux distributions (ex: Ubuntu) package Apache so that configuration files are stored in /etc/apache2 and create one file per virtual host inside folder /etc/apache2/sites-enabled. In this case, you would place the virtual host block below into the file /etc/apache2/sites-enabled/zf2-tutorial.
ServerName zf2-tutorial.localhost
DocumentRoot /path/to/zf2-tutorial/public
SetEnv APPLICATION_ENV «development»
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
ServerName zf2-tutorial.localhost
DocumentRoot /path/to/zf2-tutorial/public
SetEnv APPLICATION_ENV «development»
DirectoryIndex index.php
AllowOverride All
Require all granted
