https://github.com/devbr/wscore
Core for website application
https://github.com/devbr/wscore
Last synced: 6 months ago
JSON representation
Core for website application
- Host: GitHub
- URL: https://github.com/devbr/wscore
- Owner: devbr
- License: mit
- Created: 2017-07-12T18:36:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-15T21:10:30.000Z (over 8 years ago)
- Last Synced: 2024-04-28T00:45:11.489Z (almost 2 years ago)
- Language: PHP
- Size: 24.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Website Core
Core for PHP website.
[](https://travis-ci.org/devbr/wscore)
[](https://packagist.org/packages/devbr/wscore)
[](https://packagist.org/packages/devbr/wscore)
[](https://packagist.org/packages/devbr/wscore)
[](https://packagist.org/packages/devbr/wscore)
[](https://packagist.org/packages/devbr/wscore)
# Install
Open a terminal in root directory of your website and type:
```shell
Composer create-project devbr/wscore ./
```
Require [PHP 7](http://www.php.net/) & [Composer](https://getcomposer.org/download/).
# Commands
Access devbr system commands using "Composer run":
```shell
Composer run -h
```
Displays a list of available commands
## Create a Controller
In a terminal, type:
```shell
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:
```shell
$ sudo a2enmod rewrite
```
You may also need to add these (minimum) rows in VirtualHost settings:
```shell
DocumentRoot /var/www/website
AllowOverride All
```
