skayo/f3-boilerplate

Boilerplate for creating Web Applications with F3 (Fat-Free Framework)

Fund package maintenance!
Ko Fi
Liberapay

Installs: 18

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 1

Type:project

1.9 2021-04-06 19:12 UTC

This package is auto-updated.

Last update: 2024-04-07 02:04:00 UTC


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