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.7.1(6mo ago)321.5k↓23.9%7[3 PRs](https://github.com/leafsphp/mvc-core/pulls)6MITJavaScript

Since Oct 10Pushed 4mo 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 v4.x Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (44)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 3
-----------------

[](#-learning-leaf-3)

- Leaf has a very easy to understand [documentation](https://leafphp.dev) 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#sponsors), we love you all ❤️

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance73

Regular maintenance activity

Popularity33

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 95.1% 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 ~38 days

Recently: every ~30 days

Total

42

Last Release

123d ago

Major Versions

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

### 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 (175 commits)")[![ibnsultan](https://avatars.githubusercontent.com/u/28471267?v=4)](https://github.com/ibnsultan "ibnsultan (7 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)")

---

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

[leafs/leaf

Elegant PHP for modern developers

1.3k44.3k9](/packages/leafs-leaf)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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