minhluudev / lumin-framework by minhluudev

This is a small mvc framework
4
0
1
Package Data
Maintainer Username: minhluudev
Maintainer Contact: minhluuth@gmail.com (Minh Luu)
Package Create Date: 2024-09-21
Package Last Update: 2024-11-03
Language: PHP
License: Unknown
Last Refreshed: 2024-12-30 15:28:24
Package Statistics
Total Downloads: 4
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 2

Lumin Framework

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.php and routes/api.php
  • Route parameters: :id, :slug, :name, etc.
  • Updating

3. Controllers

  • Create controllers in app/HTTP/Controllers directory

4. Models

  • Create models in app/Models directory
  • Define relationships in models

5. Views

  • Create views in resources/views directory
  • Use .php extension for views