Skip to content

Modules

Modules are the building blocks of Leaf. They are independent pieces of Leaf's functionality available for use in your app. They are designed to be simple, easy to use, framework-agnostic, and can be used in any PHP project with nearly zero configuration.

Installing Modules

Modules are just like regular PHP packages. You can install them using Composer. To install a module, run:

bash
composer require leafs/<module>

If you're using Leaf CLI, you can install a module without the leafs/ prefix:

bash
leaf install <module>

Using Modules

Most modules integrate directly into Leaf, so you can use them with Leaf's functional mode. This gives you a little more performance and flexibility. The documentation for each module covers everything you need to know about using the module.

List of Modules

We update this list regularly. If you have a module you'd like to see here, feel free to open an issue or create a pull request on our documentation repository. Community created modules are welcome here too ❤️

ProjectStatusDescription
alchemyLatest Stable Version Total DownloadsSetup testing/linting for your PHP apps
aloeLatest Stable Version Total DownloadsSmart console helper for Leaf MVC
anchorLatest Stable Version Total DownloadsBuilt-in protection for your Leaf apps
authLatest Stable Version Total DownloadsSimple but powerful authentication system for your apps
bareuiLatest Stable Version Total DownloadsDead simple templating engine with no compilation
bladeLatest Stable Version Total DownloadsLaravel blade port for leaf
cookieLatest Stable Version Total DownloadsCookie management for your PHP apps
corsLatest Stable Version Total DownloadsCORS operations made simple
csrfLatest Stable Version Total DownloadsCSRF protection for your Leaf apps
dateLatest Stable Version Total DownloadsDead simple PHP dates
dbLatest Stable Version Total DownloadsLightweight query builder for your PHP apps
devtoolsLatest Stable Version Total DownloadsDeveloper tools for Leaf PHP
eienLatest Stable Version Total DownloadsHigh-speed, high-performance server for leaf
exceptionLatest Stable Version Total DownloadsLeaf's exception wrapper (fork of whoops)
fetchLatest Stable Version Total DownloadsHTTP requests made simple
formLatest Stable Version Total DownloadsForm processes and validation
fsLatest Stable Version Total DownloadsAwesome filesystem operations + file uploads
httpLatest Stable Version Total DownloadsHttp operations made simple (request, response, ...)
inertiaLatest Stable Version Total DownloadsLeaf adapter for inertia JS
loggerLatest Stable Version Total Downloadsleaf logger module
mailLatest Stable Version Total DownloadsMailing made easy with leaf
mvc-coreLatest Stable Version Total DownloadsBrain of Leaf MVC
passwordLatest Stable Version Total DownloadsPassword encryption/validation/hashing in one box
redisLatest Stable Version Total DownloadsFunctionality for Redis
routerLatest Stable Version Total DownloadsLeaf Router copy for use outside of Leaf
sessionLatest Stable Version Total DownloadsPHP sessions made simple
viteLatest Stable Version Total DownloadsLeaf server component for Vite

Community Modules

This is a list of modules created by the Leaf community. These modules are not officially maintained by the Leaf team, but they are welcome here. If you have a module you'd like to see here, feel free to open an issue or create a pull request on our documentation repository.

ProjectStatusDescription
devcycle/devcycle-leaf-pluginLatest Stable Version Total DownloadsDevcycle Leaf Module

Released under the MIT License.