minhluu/lumin

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

This is a small mvc framework

v1.1.0 2024-11-03 08:46 UTC

This package is auto-updated.

Last update: 2024-12-03 09:00:40 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.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