devbr / wscore
Basic & Simple Skeleton for PHP WebSites
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.6
- devbr/database: dev-master
- devbr/html: dev-master
- devbr/pack-blog: dev-master
- devbr/router: dev-master
- devbr/tools: dev-master
This package is not auto-updated.
Last update: 2024-10-27 03:52:27 UTC
README
Website Core
Core for PHP website.
Install
Open a terminal in root directory of your website and type:
Composer create-project devbr/wscore ./
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/>