minhluu/lumin
最新稳定版本:v1.1.0
Composer 安装命令:
composer require minhluu/lumin
包简介
This is a small mvc framework
README 文档
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
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2024-10-31