Core for PHP website.
Open a terminal in root directory of your website and type:
Composer create-project devbr/website ./
Access devbr system commands using "Composer run":
Composer run -h
Displays a list of available commands
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/>