aze/aze

The AZE PHP framework

dev-master 2018-09-03 14:41 UTC

README

Lightweight PHP Framework

aze/cli

aze-php/cli is a binary use to install and serve your aze application

composer global require "aze/cli"

More about aze-php/cli

How to install

With aze/cli

aze new

With composer

composer require "aze/aze"

Then create an index.php file in your public directory with the following content

<?php
$loader = require_once(__DIR__ . '/../vendor/autoload.php');
AZE\core\Initializer::initialize();

How to serve your application

With aze/cli

aze serve

With apache

Create an .htaccess file in your public directory to redirect all requests to your index.php

RewriteEngine on
       
Options +FollowSymLinks

php_flag display_errors on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(js|ico|gif|jpg|png|css|swf)$		/index.php