There is no license information available for the latest version (v1.0.0.0) of this package.

Light and intuitive PHP framework

v1.0.0.0 2024-01-11 10:26 UTC

This package is auto-updated.

Last update: 2024-04-11 22:04:31 UTC


README

By Leny Bressoud AKA ENDERastronaute

Contacts :

Lighter 🔦

Postgres Bootstrap PHP

Lighter is a light, easy to use and intuitive PHP framework. It allows you to fully create an app in a simple way while leaving full control of what you are doing.

Lighter gives you a lot of features and dependencies, some are listed below.

Table of content

MVC

Lighter mainly uses the MVC model (Model View Controller), although one can use views to work with HTML alongside PHP.

Router

The router gives you full control over : which pages are public or not, which route returns what or custom error pages like 404.php.

It does not use Symphony.

Middleware

The middleware function allows you to do anything before accessing a route.
The Middleware.php file has some examples of use, replace them by your needs.

Components

The components feature allows one to reuse pieces of code everywhere and to pass data dynamically to them, just like functions but for HTML too.

Project

Project is the main file of Lighter it is similar to Artisan.

Here's for exemple, how to start the server :

$ php project start localhost:3000

View more on the official documentation : todo