devbr/wscore

Basic & Simple Skeleton for PHP WebSites

0.0.2 2017-08-10 01:20 UTC

This package is not auto-updated.

Last update: 2024-05-12 01:29:18 UTC


README

687474703a2f2f6462726173696c2e746b2f6d656469612f64625f39362e706e67

Website Core

Core for PHP website.

Build Status Latest Stable Version Latest Unstable Version License Total Downloads Monthly Downloads

Install

Open a terminal in root directory of your website and type:

Composer create-project devbr/wscore ./ 

Require PHP 7 & Composer.

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/>

687474703a2f2f6462726173696c2e746b2f6d656469612f646236342e706e67