PHPackages                             leafs/leaf - 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/leaf

ActiveLibrary[Framework](/categories/framework)

leafs/leaf
==========

Elegant PHP for modern developers

v4.4(7mo ago)1.3k44.3k—0%70[9 issues](https://github.com/leafsphp/leaf/issues)9MITPHPPHP ^7.4|^8.0CI failing

Since Oct 17Pushed 2mo ago21 watchersCompare

[ Source](https://github.com/leafsphp/leaf)[ Packagist](https://packagist.org/packages/leafs/leaf)[ Docs](https://leafphp.dev)[ GitHub Sponsors](https://github.com/leafsphp)[ Fund](https://opencollective.com/leaf)[ RSS](/packages/leafs-leaf/feed)WikiDiscussions v4.x Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (67)Used By (9)

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

Leaf PHP
========

[](#leaf-php)

 [![Latest Stable Version](https://camo.githubusercontent.com/35ecd2ebaed03e1689be3777e97eecf66efdf7e0709aa6da8c659e467698499c/68747470733a2f2f706f7365722e707567782e6f72672f6c656166732f6c6561662f762f737461626c65)](https://packagist.org/packages/leafs/leaf) [![Total Downloads](https://camo.githubusercontent.com/8e27af23f95ffd8c01d20050f9db5ce37bb1763351a662809dea110ab6f033bf/68747470733a2f2f706f7365722e707567782e6f72672f6c656166732f6c6561662f646f776e6c6f616473)](https://packagist.org/packages/leafs/leaf) [![License](https://camo.githubusercontent.com/ce9580815f935f2426e77afb21c3c4f399209357785d973c8ae764d853b52b74/68747470733a2f2f706f7365722e707567782e6f72672f6c656166732f6c6561662f6c6963656e7365)](https://packagist.org/packages/leafs/leaf)

Leaf is a slim and lightweight PHP framework focused on developer experience, usability, and high-performance code. It introduces a cleaner and much simpler structure to the PHP language while maintaining it's flexibility. With a simple structure and a shallow learning curve, it's an excellent way to rapidly build powerful and high performant web apps and APIs.

Basic Usage
-----------

[](#basic-usage)

After [installing](#installation) Leaf, create an *index.php* file.

```
