skayo / f3-boilerplate
Boilerplate for creating Web Applications with F3 (Fat-Free Framework)
Fund package maintenance!
jonasgeiler
Ko Fi
Liberapay
Requires
- bcosca/fatfree-core: ^3.7
- vlucas/phpdotenv: ^5.3
Requires (Dev)
- roave/security-advisories: dev-latest
README
This is a simple boilerplate for Projects using the Fat-Free Framework.
Getting Started
With composer create-project
Replace my-project
with your project name:
composer create-project skayo/f3-boilerplate my-project
With composer install
Clone this repository and then run:
composer install
Then copy .env.example
to .env
Directory Structure
The directory structure is heavily inspired by Laravel/Lumen and can be customized however you want:
.
├── .env # environment variables
├── app/
│ ├── Controllers/
│ ├── Models/
│ └── Helpers/ # helper functions and classes
├── config/
│ ├── bootstrap.php # initializes the whole application
│ ├── globals.php # framework variables and other globals
│ └── routes.php # routes, maps and redirects
├── public/ # public web root
│ └── index.php # entry point of the whole application
├── resources/
│ ├── langs/ # localization files
│ └── views/ # views/layouts
├── storage/ # storage for the application (needs chmod 0777)
│ ├── cache/
│ ├── logs/
│ ├── tmp/ # temporary files
│ └── uploads/
└── lib/ # composer install directory