An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Website Core
Core for PHP website.

[![Build Status](https://travis-ci.org/devbr/wscore.svg)](https://travis-ci.org/devbr/wscore)
[![Latest Stable Version](https://poser.pugx.org/devbr/wscore/v/stable)](https://packagist.org/packages/devbr/wscore)
[![Latest Unstable Version](https://poser.pugx.org/devbr/wscore/v/unstable)](https://packagist.org/packages/devbr/wscore)
[![License](https://poser.pugx.org/devbr/wscore/license)](https://packagist.org/packages/devbr/wscore)
[![Total Downloads](https://poser.pugx.org/devbr/wscore/downloads)](https://packagist.org/packages/devbr/wscore)
[![Monthly Downloads](https://poser.pugx.org/devbr/wscore/d/monthly)](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

```