Wallogit.com
2017 © Pedro Peláez
The framework dedicated to developers for who don't code
FHC(FLRngel Hates Coding) PHP Framework, (*1)
The framework using MVC Model, rails folder structure(about 80%), and ultra easy to use., (*2)
Apache2 (mod_rewrite), (*3)
PHP ( >= 5.3 ), (*4)
git clone https://github.com/flrngel/FHC-Framework <project name> cd <project name> ./install.sh
or use FHC-Gaia, (*5)
gaia new <project name>
/index.php : FHC-Framework begins with index.php on every page./lib/include/*.php : index.php load every php files in here.(core.php, functions, etc.)/lib/classes/*.php : class files has to be in here./lib/modules/ : not accessable directory from web request. for crons, modules, plugin build, etc./app/controllers/*.php : controller files/app/views/*.html : view file(default matches with same /app/assets/ : assets for websiteGET /what/to/do
app/controllers/what/to/do.php
$res as global varable to view fileapp/views/what/to/do.html and get contents toss as $contents variableapp/views/layout/[default].html
This is inspired from dotfiles, (*6)
FHC-Framework first loads $_SERVER['DOCUMENT_ROOT']/.env json file and decodes to $_ENV variable, (*7)
as $_ENV is global(php default), you can use it everywhere under FHC-Framework, (*8)
just create app/controllers/<dir>/<filename>.php and access as GET(POST) /<dir>/<filename>, (*9)
$res variable is defined as array, and is global variable between controllers, views, layout, (*10)
you can use anywhere lib/classes/<NAMESPACE>/<CLASSNAME>.php as new <CLASSNAME> from controller files, (*11)
use FHC-Gaia, (*12)
gaia update <project name>
MIT, (*13)