skayo/f3-boilerplate

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

Fund package maintenance!
jonasgeiler
Ko Fi
Liberapay

Installs: 22

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-11-07 03:29:19 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