almhdy24/php-mini-mvc
Composer 安装命令:
composer create-project almhdy24/php-mini-mvc
包简介
Professional PHP Mini MVC Skeleton
README 文档
README
A small and clean PHP MVC skeleton using Composer and PSR-4 autoloading.
Intended as a starting point for simple to medium PHP projects.
Features
- Basic MVC structure
- PSR-4 autoloading via Composer
- Front controller (
public/index.php) - Simple router
- Base PDO model
- Easy to extend
Requirements
- PHP 8 or higher
- Composer
Quick Start
git clone https://github.com/yourname/php-mini-mvc.git
cd php-mini-mvc
composer install
composer dump-autoload
php -S localhost:8000 -t public
Open your browser at:
http://localhost:8000
Usage
- Entry point:
public/index.php - Controllers:
app/Controllers - Models:
app/Models - Views:
app/Views - Configuration:
config/app.php
Purpose
This project is meant to be cloned and adapted.
It avoids heavy abstractions and full frameworks while keeping a clean structure.
License
MIT
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-27