devbr/website

Basic & Simple Skeleton for PHP WebSites

0.2.1 2018-01-20 22:18 UTC

This package is not auto-updated.

Last update: 2024-10-26 20:48:17 UTC


README

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

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