The framework dedicated to developers for who don't code
FHC(FLRngel Hates Coding) PHP Framework
The framework using MVC Model, rails folder structure(about 80%), and ultra easy to use.
PHP ( >= 5.3 )
git clone https://github.com/flrngel/FHC-Framework <project name> cd <project name> ./install.sh
or use FHC-Gaia
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 controller)
/app/assets/: assets for website
- Model(class in FHC)
- User requests such pattern,
- index.php parses request URI
- executes controller file
$resas global varable to view file
- renders view file
app/views/what/to/do.htmland get contents toss as $contents variable
- renders layout file
- response rendered page
This is inspired from dotfiles
FHC-Framework first loads
$_SERVER['DOCUMENT_ROOT']/.env json file and decodes to
$_ENV is global(php default), you can use it everywhere under FHC-Framework
app/controllers/<dir>/<filename>.php and access as
$res variable is defined as array, and is global variable between
you can use anywhere
new <CLASSNAME> from controller files
gaia update <project name>