explt13/nosmi

A lightweight MVC framework

1.1.25 2025-06-02 14:20 UTC

This package is auto-updated.

Last update: 2025-06-24 14:13:47 UTC


README

Nosmi is a minimal and lightweight PHP framework designed for rapid development and prototyping of small to medium-scale web applications.

🚀 Features

  • Clean and simple project structure
  • Follows the MVC (Model-View-Controller) pattern
  • Minimal dependencies
  • Easy to understand and extend
  • Great for learning or building small apps quickly

📦 Installation

You can install Nosmi via Composer:

composer create-project explt13/nosmi my-app

Installation via Script

  1. Download and install nosmi from this repository.
  2. Add it to your system's PATH.
  3. Run the following command:
nosmi init

This will initialize the project structure and install the required dependencies.

🗂 Project Structure

my-app/
├── bin/
├── public/
   ├── index.php
   ├── .htaccess
   └── ...
├── src/
   ├── models
   ├── controllers
   ├── render
      ├── views
         ├── errors
         └── ...
      └── layouts
   └── ...
├── tests/
├── composer.json
└── ...

🧱 Basic Usage

public/index.php
require_once __DIR__ . '/../vendor/autoload.php';
use Nosmi\App;
$app = (new App())
        ->bootstrap(config_path)
        ->run();

📄 License

This project is licensed under the MIT License.