Skip to content

aze-php/aze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aze

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors