leafs/mvc-core

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

v4.0 2025-03-08 23:30 UTC

README





Leaf MVC Core

Latest Stable Version Total Downloads License

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 and methods that help with separation of concerns and building a full-blown MVC application with Leaf.

📦 Installation

You can quickly get leaf mvc core up and running with the leaf cli

leaf install mvc-core

or with composer

composer require leafs/mvc-core

🧩 Components

MVC Core comes with:

  • Controllers
  • Database & Model functionalities
  • Tons of MVC and module globals
  • Autoloading directory files

Since you don't use this package on its own, the documentation is covered in the Leaf MVC documentation.

💬 Stay In Touch

📓 Learning Leaf 3

  • Leaf has a very easy to understand documentation which contains information on all operations in Leaf.
  • You can also check out our youtube channel 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

We are glad to have you. All contributions are welcome! To get started, familiarize yourself with our contribution guide and you'll be ready to make your first pull request 🚀.

To report a security vulnerability, you can reach out to @mychidarko or @leafphp on twitter. We will coordinate the fix and eventually commit the solution in this project.

🤩 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 or check the contribution page for a list of ways to contribute.

And to all our existing cash/code contributors, we love you all ❤️