almhdy24/php-mini-mvc

Professional PHP Mini MVC Skeleton

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:project

pkg:composer/almhdy24/php-mini-mvc

dev-main 2025-12-27 13:36 UTC

This package is auto-updated.

Last update: 2025-12-27 13:42:31 UTC


README

PHP Composer License

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