Skip to content

PHP Fat-Free Framework example - A skeleton web application which implements an MVC structure and includes the files from the html5boilerplate project. If you don't want the html5boilerplate files checkout fatfree-mvc instead.

Notifications You must be signed in to change notification settings

deeemoe/f3-boilerplate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

f3-boilerplate

Empty PHP Fatfree-framework MVC website code

Setup

Configuration

  • Copy app/config/config.ini.example to config.ini
  • Edit app/config/config.ini and add anything extra from default.ini for overrides
  • In the top level folder run composer install

Folders & Permissions

Setup empty website folders as follows:

mkdir -p tmp/cache tmp/sessions tmp/uploads tmp/logs data
sudo chown -fR www-data:www-data tmp data
sudo chmod -fR 777 tmp data

Description of Project Layout

  • www - website and public doc root (aka public_html or htdocs etc)
  • www/index.php - start website application here
  • app/lib/ - all library files/classes
  • app/lib/bcosca/fatfree - fatfree framework lives here
  • tmp/cache tmp/sessions tmp/uploads - temporary files
  • tmp/logs - application logfiles
  • data - website data storage
  • app - the website application lives outside the webroot for security www/index.php is the default file used by .htaccess for routing
  • app/doc - application documentation (markdown files)
  • app/config - application configuration files
  • app/config/vhost - application virtual host configuration files (apache and nginx supported)
  • app/app.php - start fatfree by including this file and running FFMVC\App\Run();
  • app/cli.php - command-line specific bootstrap instructions
  • app/lib/FFMVC/App - Base Application Classes
  • app/lib/FFMVC/Models - MVC Models
  • app/lib/FFMVC/Controllers - MVC Controllers
  • app/lib/FFMVC/Helpers - Useful static helper functions and utility libraries specific to the project
  • app/lib/FFMVC/CLI - Command line script controller lib
  • app/templates/www/error/ - these files are standard php includes, not f3 templates, used by the error handler function
  • app/templates/www/error/debug.phtml - debug error page (if DEBUG=3)
  • app/templates/www/error/404.phtml - 'friendly' file not found page
  • app/templates/www/error/error.phtml - 'friendly' error page

-- https://about.me/vijay.mahrra

About

PHP Fat-Free Framework example - A skeleton web application which implements an MVC structure and includes the files from the html5boilerplate project. If you don't want the html5boilerplate files checkout fatfree-mvc instead.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ApacheConf 43.2%
  • HTML 28.0%
  • PHP 17.7%
  • CSS 9.8%
  • JavaScript 1.3%