Download the PHP package sitrunlab/learnzf2 without Composer
On this page you can find all versions of the php package sitrunlab/learnzf2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sitrunlab/learnzf2
More information about sitrunlab/learnzf2
Files in sitrunlab/learnzf2
Package learnzf2
Short Description Learn ZF2 website
License MIT
Homepage http://learnzf2.sitrun-tech.com/
Informations about the package learnzf2
LearnZF2 repository
Introduction
This is a repository for the "Learning Zend Framework" website and contains live modules that you can view or download directly.
Installation
1.Use Composer:
2.Use Bower to install asset dependencies. Install NodeJs dan run :
3.This is the output of the Bower installation process.
Check that Bower was installed successfully :
The output should look like this:
[optional] If there was no output, try installing nodejs-legacy
4.Copy config/autoload/doctrine.local.php.dist
to config/autoload/doctrine.local.php
and configure it with your current environment.
5.Run doctrine migrations
Web Server Setup
PHP CLI Server
The easiest way to begin in PHP 5.4 or higher is by running this script:
php -S 0.0.0.0:8080 -t public/ public/index.php
The script above will start "cli-server" on port 8080 and affect all network interfaces.
Warning: The built in CLI-Server is for development only!
Apache Setup
<VirtualHost *:80>
ServerName learnzf2.localhost
DocumentRoot /path/to/LearnZF2/public
SetEnv APPLICATION_ENV "development"
<Directory /path/to/learnzf2.localhost/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Nginx Setup
Create a new file named "learnzf2.localhost"
sudo gedit /etc/nginx/sites-available/learnzf2.localhost
And filled it with these scripts.
server {
listen 80;
server_name learnzf2.localhost;
root /path/to/LearnZF2/public;
index index.html index.htm index.php;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Create a symlink to the "sites-enabled" directory
sudo ln -s /etc/nginx/sites-available/learnzf2.localhost /etc/nginx/sites-enabled/learnzf2.localhost
Restart the Nginx service.
sudo service nginx restart
NOTE : Don't forget to add a "virtual hostname" to the host file.
The host file location in Windows is :
C:\Windows\System32\Drivers\etc\hosts
The host file location in Linux is :
sudo gedit /etc/hosts
And add this line :
127.0.0.1 learnzf2.localhost
All versions of learnzf2 with dependencies
zendframework/zendframework Version ^2.5.2
zendframework/zftool Version dev-master
doctrine/doctrine-orm-module Version ~0.9.0
doctrine/migrations Version ~1.1