minhluu / lumin
This is a small mvc framework
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 2
pkg:composer/minhluu/lumin
Requires
- minhluu/lumin-core: ^1.0
- vlucas/phpdotenv: ^5.6
This package is auto-updated.
Last update: 2025-10-31 00:32:39 UTC
README
I. Introduction
1. What is Lumin?
Lumin is a PHP framework that helps you build web applications quickly and easily. It is based on the MVC pattern and is designed to be simple, lightweight, and easy to use.
2. Features
- MVC pattern
- ORM (Object Relational Mapping)
- Routing
- Middleware
- Request and Response
- Database
- Migrations
- Validation
- Error handling
- Logging
- Command line interface
- Composer support
3. Requirements
- PHP 8.3.6
- Composer
- MySQL
4. Installation
composer create-project minhluu/lumin example-app
5. Run
php lumin start
5. Documentation
6. License
Lumin is open-source software licensed under the MIT license.
II. Getting Started
1. Configuration
- Database configuration:
config/database.php - Application configuration:
config/app.php - Environment configuration:
.env
2. Routing
- Define routes in
routes/web.phpandroutes/api.php - Route parameters:
:id,:slug,:name, etc. - Updating
3. Controllers
- Create controllers in
app/HTTP/Controllersdirectory
4. Models
- Create models in
app/Modelsdirectory - Define relationships in models
5. Views
- Create views in
resources/viewsdirectory - Use .php extension for views