Leaf PHP: a new minimalist framework that's changing the game
In the world of PHP development, heavyweights like Laravel and Symfony have dominated for a long time. However, in 2025, a new player has entered the scene — Leaf PHP, which is rapidly gaining popularity among developers. This framework offers a fresh perspective on building web applications, combining minimalism with powerful functionality.
What is Leaf PHP and why is everyone talking about it?
Leaf is a lightweight PHP framework built from the ground up for rapid development of APIs, microservices, and single-page applications. Unlike monolithic solutions, Leaf does not impose a strict architecture on the developer, allowing you to use only the components you actually need.
Key features of Leaf PHP:
- Minimal core size — the framework weighs less than 100 KB, making it one of the most compact PHP solutions on the market.
- Quick start — installation via Composer and project launch take less than a minute.
- Built-in support for PSR-7 and PSR-15 — compatibility with modern PHP standards.
- Modular architecture — only include the libraries your project needs.
- Built-in CLI tool Leaf Console — automation of routine tasks, code generation, and migration management.
Why is Leaf gaining popularity right now?
The growing interest in Leaf PHP can be explained by several factors. Firstly, developers are tired of bulky frameworks that require deep study and often slow down development. Secondly, the trend towards microservice architecture requires lightweight solutions — and Leaf is perfect for this task.
Here's what users are saying on GitHub and Reddit:
- "Leaf allowed me to create a full-fledged REST API in 2 hours instead of two days on Laravel."
- "Finally, a PHP framework that doesn't try to do everything for me, but still provides tools for fast work."
- "A great alternative for projects where you don't need the full Laravel stack."
Comparison with competitors
To understand the advantages of Leaf, let's compare it with popular solutions:
- Laravel — powerful but heavyweight (over 15 MB in a basic installation). Leaf is 150 times lighter.
- Slim — a minimalist microframework, but Leaf has a richer ecosystem and better documentation.
- Symfony — the corporate standard, but requires a long learning curve. Leaf can be learned in an evening.
How to get started with Leaf PHP?
Installing the framework is as simple as ever. Run in your terminal:
composer create-project leafs/leafAfter that, create a file index.php with a simple route:
<?phprequire __DIR__ . '/vendor/autoload.php';
app()->get('/', function() { response()->json(['message' => 'Hello, Leaf!']);});
app()->run();Done! Your first Leaf application is already running. For more complex projects, the framework offers built-in support for Eloquent ORM, request validation, and even working