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(1mo ago)422.9k↓33%7[2 issues](https://github.com/leafsphp/mvc-core/issues)[1 PRs](https://github.com/leafsphp/mvc-core/pulls)6MITJavaScript

Since Oct 10Pushed 1mo 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 2d ago

READMEChangelog (10)Dependencies (18)Versions (45)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

53

—

FairBetter than 96% of packages

Maintenance83

Actively maintained with recent releases

Popularity33

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 93.8% 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 ~63 days

Total

43

Last Release

35d 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 (180 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

3355.3M345](/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.

45444.2k1](/packages/pressbooks-pressbooks)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M132](/packages/laravel-pulse)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)

PHPackages © 2026

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