By Leny Bressoud AKA ENDERastronaute
Contacts :
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.
Lighter mainly uses the MVC model (Model View Controller), although one can use views to work with HTML alongside PHP.
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.
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.
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 is the main file of Lighter it is similar to Artisan.
Here's for exemple, how to start the server :
$ php project start localhost:3000View more on the official documentation : todo