A minimalist MVC PHP framework for modern web artisans
Lightning-fast · Elegant Syntax · Developer Friendly
- MVC Architecture - Clean separation of concerns
- Lightning Fast - Minimal overhead, maximum performance
- Built-in ORM - Simple ActiveRecord implementation
- Routing System - RESTful routing with parameter binding
- Dependency Injection - Powerful IoC container
- Template Engine - PHP-based views with layout support
- Security First - CSRF protection, input sanitization
- CLI Tools - Built-in development server and generator commands
Create a new project with Composer:
composer create-project tinymvc/tinymvc myapp
Start development server:
cd myapp
php spark serve
Production Note: Configure your web server to point to the /public directory.
<?php
use Spark\Http\Route;
Route::get('welcome/{name}', function($name) {
return response("Welcome, $name!");
});
Full documentation is available at: https://tinymvc.github.io
We welcome contributions! Please:
- ⭐ Star the repository
- 🐞 Report issues here
- 🛠 Submit PRs following our contribution guidelines
TinyMVC is open-source software licensed under the MIT License.