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

ActiveLibrary[Framework](/categories/framework)

nivstudios/php-mvc-core
=======================

installable php mvc core for my projects

v1.0.1(2y ago)03PHP

Since Mar 31Pushed 1y ago1 watchersCompare

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

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 21% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

823d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32021709?v=4)[Ngu Ivo](/maintainers/nguivo)[@nguivo](https://github.com/nguivo)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[laravel/dusk

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

1.9k39.6M297](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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