devbr / website
Basic & Simple Skeleton for PHP WebSites
Installs: 116
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Type:project
Requires
- php: >=5.6
- devbr/database: *
- devbr/html: *
- devbr/router: *
- devbr/tools: *
README
Core for PHP website.
Install
Open a terminal in root directory of your website and type:
Composer create-project devbr/website ./
Commands
Access devbr system commands using "Composer run":
Composer run -h
Displays a list of available commands
Create a Controller
In a terminal, type:
Composer run make:controller Blog\Front\Page
A new file in the .php/Blog/Front/Page.php
path will be created containing the minimum code (based on template).
Attention:
To use minification and obfuscation of files with the command "optimize" it is necessary to install JAVA.
You need to enable Apache mod_rewrite.
At the terminal, type:
$ sudo a2enmod rewrite
You may also need to add these (minimum) rows in VirtualHost settings:
<VirtualHost *:80> DocumentRoot /var/www/website <Directory /var/www/website> AllowOverride All </Directory> <VirtualHost/>