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

ActiveLibrary[Framework](/categories/framework)

leafs/mvc-core
==============

Core files specific to MVC based leaf frameworks like Leaf MVC and Leaf API.

v4.8(2mo ago)423.5k↓26.1%7[2 issues](https://github.com/leafsphp/mvc-core/issues)[1 PRs](https://github.com/leafsphp/mvc-core/pulls)6MITJavaScriptCI passing

Since Oct 10Pushed 3d ago1 watchersCompare

[ Source](https://github.com/leafsphp/mvc-core)[ Packagist](https://packagist.org/packages/leafs/mvc-core)[ Docs](https://leafphp.dev/docs/mvc/)[ GitHub Sponsors](https://github.com/leafsphp)[ Fund](https://opencollective.com/leaf)[ RSS](/packages/leafs-mvc-core/feed)WikiDiscussions v5.x Synced 2w ago

READMEChangelog (10)Dependencies (18)Versions (46)Used By (6)

 [![](https://camo.githubusercontent.com/d98ee5e32c2ff016fdfdac6c42654a908f4cc34b229c7b00caacc5a717455ae8/68747470733a2f2f6c6561667068702e6465762f6c6f676f2d636972636c652e706e67)](https://camo.githubusercontent.com/d98ee5e32c2ff016fdfdac6c42654a908f4cc34b229c7b00caacc5a717455ae8/68747470733a2f2f6c6561667068702e6465762f6c6f676f2d636972636c652e706e67)

Leaf MVC Core
=============

[](#leaf-mvc-core)

[![Latest Stable Version](https://camo.githubusercontent.com/0ad09b06f831c5cc77ac97d15fde97e78e2528ac8d815956a94cb04bf7f03807/68747470733a2f2f706f7365722e707567782e6f72672f6c656166732f6d76632d636f72652f762f737461626c65)](https://packagist.org/packages/leafs/mvc-core)[![Total Downloads](https://camo.githubusercontent.com/4837bfec9c509522db9c003898e6dd38c58c24ee177ca3dd7fbc0646650d97bd/68747470733a2f2f706f7365722e707567782e6f72672f6c656166732f6d76632d636f72652f646f776e6c6f616473)](https://packagist.org/packages/leafs/mvc-core)[![License](https://camo.githubusercontent.com/1828d5688dd83870ea9704f680ddc83e5f49428805ccc70f0828d13c8ca0c27b/68747470733a2f2f706f7365722e707567782e6f72672f6c656166732f6d76632d636f72652f6c6963656e7365)](https://packagist.org/packages/leafs/mvc-core)

Leaf MVC Core is the heart of Leaf MVC and serves as bridge between Leaf, modules and the MVC file structure. It provides a ton of extra functionality like extra globals, classes, console commands and methods that help with separation of concerns and building a full-blown MVC application with Leaf.

It ships with all Leaf MVC applications and is not meant to be used on its own.

🧩 Features
----------

[](#-features)

MVC Core comes with:

- Base Controllers
- Shortcuts for views and layouts
- Console commands for generating files/layouts/modules
- Automatic module loading
- Config loading for MVC apps
- Autoloading directory files
- Basically everything that gives Leaf it's MVC superpowers

💬 Stay In Touch
---------------

[](#-stay-in-touch)

- [Twitter](https://twitter.com/leafphp)
- [Join the forum](https://github.com/leafsphp/leaf/discussions/37)
- [Chat on discord](https://discord.com/invite/Pkrm9NJPE3)

📓 Learning Leaf 4 MVC
---------------------

[](#-learning-leaf-4-mvc)

- Leaf has a very easy to understand [documentation](https://leafphp.dev/docs/) which contains information on all operations in Leaf.
- You can also check out our [youtube channel](https://www.youtube.com/channel/UCllE-GsYy10RkxBUK0HIffw) which has video tutorials on different topics
- We are also working on codelabs which will bring hands-on tutorials you can follow and contribute to.

😇 Contributing
--------------

[](#-contributing)

We are glad to have you. All contributions are welcome! To get started, familiarize yourself with our [contribution guide](https://leafphp.dev/community/contributing.html) and you'll be ready to make your first pull request 🚀.

To report a security vulnerability, you can reach out to [@mychidarko](https://twitter.com/mychidarko) or [@leafphp](https://twitter.com/leafphp) on twitter. We will coordinate the fix and eventually commit the solution in this project.

🤩 Sponsoring Leaf
-----------------

[](#-sponsoring-leaf)

We are committed to keeping Leaf open-source and free, but maintaining and developing new features now requires significant time and resources. As the project has grown, so have the costs, which have been mostly covered by the team. To sustain and grow Leaf, we need your help to support full-time maintainers.

You can sponsor Leaf and any of our packages on [open collective](https://opencollective.com/leaf) or check the [contribution page](https://leafphp.dev/support/) for a list of ways to contribute.

And to all our [existing cash/code contributors](https://leafphp.dev/support.html#our-sponsors), we love you all ❤️

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance83

Actively maintained with recent releases

Popularity34

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 94.3% 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

Every ~40 days

Recently: every ~64 days

Total

44

Last Release

18d ago

Major Versions

v1.11 → v4.0-beta2025-02-28

v4.x-dev → v5.x-dev2026-07-30

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29547806?v=4)[Mychi](/maintainers/Mychi)[@mychi](https://github.com/mychi)

---

Top Contributors

[![mychidarko](https://avatars.githubusercontent.com/u/26604242?v=4)](https://github.com/mychidarko "mychidarko (198 commits)")[![ibnsultan](https://avatars.githubusercontent.com/u/28471267?v=4)](https://github.com/ibnsultan "ibnsultan (7 commits)")[![MischaKr](https://avatars.githubusercontent.com/u/1812985?v=4)](https://github.com/MischaKr "MischaKr (2 commits)")[![1mahdimf](https://avatars.githubusercontent.com/u/8771082?v=4)](https://github.com/1mahdimf "1mahdimf (1 commits)")[![mmagdiel](https://avatars.githubusercontent.com/u/14327365?v=4)](https://github.com/mmagdiel "mmagdiel (1 commits)")[![srcarvalho12](https://avatars.githubusercontent.com/u/134537873?v=4)](https://github.com/srcarvalho12 "srcarvalho12 (1 commits)")

---

Tags

leafphpphpphpframeworkrestmvcmicroframeworkleaf

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45844.8k1](/packages/pressbooks-pressbooks)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k21](/packages/tempest-framework)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

265.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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