PHPackages                             nguivo/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. nguivo/php-mvc-core

ActiveLibrary[Framework](/categories/framework)

nguivo/php-mvc-core
===================

installable php mvc core for my projects

v1.0.1(2y ago)06PHP

Since Mar 31Pushed 1y ago1 watchersCompare

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

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

PHP MVC Core
============

[](#php-mvc-core)

Introduction
------------

[](#introduction)

This project facilitates work when you want to build an MVC pattern in PHP. it contains all the core files. For example, the Application class which is the main class which ties the whole MVC application together, the database connection files found in the 'db' folder, middleswares for access control, exception handling files in the 'exceptions' folder, base classes to be extended by all models and conrollers in the application and most imortantly, the routing class. This PHP MVC Core files are required everytime you build an MVC application in PHP. By simply pulling from this repository, you don't have to rewrite these files over and over.

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

[](#installation)

1. Create a folder in your project home for these files
2. Download the files from PHP-MVC-core project into the just created folder.

Usage
-----

[](#usage)

1. Intialize the Application Class in your index file: e.g

    $app = new Application($directory, $config);

    - $directory is a string, the root path of your project directory
    - $config is an associative array containing your database PDO connection details like, dsn, username, and password e.g $config = \[ 'userClass' =&gt; User::class, 'db' =&gt; \[ "dsn" =&gt; "mysql:host={$\_ENV\['DB\_HOST'\]};dbname={$\_ENV\['DB\_NAME'\]};", "user" =&gt; $\_ENV\['DB\_USER'\], "pass" =&gt; $\_ENV\['DB\_PASS'\] \] \];
    - 'userClass' is what ever name you call the class that represents a user in your application. Leave it out if you don't have such a class
2. Add routes to your application. For example: $app-&gt;router-&gt;get('/', \[SiteController::class, 'home'\]);

    - 'get' is the request method. could be 'post'
    - '/' is the path
    - SiteController is the class to be called and 'home' is the method of that class which will be executed everytime this path is requested by the specified method.

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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

769d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a6ad5cb5831f3189d3560822bee345d28bd74f8c959abdbaedb74ed39443b64?d=identicon)[nguivo](/maintainers/nguivo)

---

Top Contributors

[![nguivo](https://avatars.githubusercontent.com/u/32021709?v=4)](https://github.com/nguivo "nguivo (8 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M190](/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.7M255](/packages/laravel-dusk)[laravel/prompts

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

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

A simple API extension for DateTime.

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

PHPackages © 2026

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