PHPackages                             droidevs/php-mvc-core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. droidevs/php-mvc-core

ActiveLibrary[Framework](/categories/framework)

droidevs/php-mvc-core
=====================

1.0(7mo ago)01PHP

Since Oct 12Pushed 7mo agoCompare

[ Source](https://github.com/droidevs/php-mvc-core)[ Packagist](https://packagist.org/packages/droidevs/php-mvc-core)[ RSS](/packages/droidevs-php-mvc-core/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

tc\_php\_mvc\_core
==================

[](#tc_php_mvc_core)

A lightweight PHP MVC core / micro-framework for learning and building custom web apps.

Table of Contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Architecture](#architecture)
- [Installation](#installation)
- [Usage](#usage)
- [Directory Structure](#directory-structure)
- [Configuration](#configuration)
- [Extending &amp; Customization](#extending--customization)
- [Contributing](#contributing)
- [License](#license)

Features
--------

[](#features)

- Simple routing (HTTP GET/POST)
- Controllers, Views, Models
- Request / Response abstraction
- Session &amp; flash messaging
- Middleware support
- Basic form validation &amp; exception handling

Architecture / Concepts
-----------------------

[](#architecture--concepts)

Follows MVC pattern:

- **Model** handles data and business logic
- **View** renders presentation
- **Controller** processes requests, interacts with models, returns responses
- **Router** maps URL paths to controller actions
- **Middleware** allows pre-/post-processing

Installation
------------

[](#installation)

```
git clone https://github.com/thecodeholic/tc-php-mvc-core.git
cd tc-php-mvc-core
composer install
```

Point your server’s document root to `public` (or route all requests to `index.php`). Use:

```
php -S localhost:8000 -t public
```

Usage
-----

[](#usage)

1. Define routes
2. Create controller classes extending `Controller`
3. Create view templates in `views/`
4. Create models extending `Model`
5. Visit endpoints in browser

Directory Structure
-------------------

[](#directory-structure)

```
/db
/exception
/form
/middlewares
/public
/views
/controllers
/models
Application.php
Controller.php
Model.php
Request.php
Response.php
Router.php
Session.php
View.php
composer.json
README.md

```

Configuration
-------------

[](#configuration)

Configure:

- Database
- Base URL / routing
- Error handling
- Middleware registration
- Autoloading

Extending &amp; Customization
-----------------------------

[](#extending--customization)

You can build on the core by adding:

- ORM enhancements
- Dependency injection / service container
- Advanced routing features
- More middleware (auth, CSRF, caching)
- Error &amp; exception handling

Contributing
------------

[](#contributing)

Contributions are welcome! Please open issues or PRs. Follow code style, document changes, and test where possible.

License
-------

[](#license)

MIT License — see [LICENSE](LICENSE)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance64

Regular maintenance activity

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

216d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4cead3a6ff3ab9dc6171f44024af15e93d7a82291927772e0fdc547d0d55689a?d=identicon)[droidevs](/maintainers/droidevs)

---

Top Contributors

[![droidevs](https://avatars.githubusercontent.com/u/85079344?v=4)](https://github.com/droidevs "droidevs (2 commits)")

---

Tags

composercontrollerframeworkmicroframeworkmiddlewaremodelmvcoopphpphp-frameworkrequest-responseroutingsessionview

### Embed Badge

![Health badge](/badges/droidevs-php-mvc-core/health.svg)

```
[![Health](https://phpackages.com/badges/droidevs-php-mvc-core/health.svg)](https://phpackages.com/packages/droidevs-php-mvc-core)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
