PHPackages                             cloverphp/framework - 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. cloverphp/framework

ActiveLibrary[Framework](/categories/framework)

cloverphp/framework
===================

Clover: Clover PHP is a modern, unopinionated, and lightweight Express.js-style framework for PHP.

v0.0.2(7mo ago)1238↓100%1MITPHPPHP ^8.2CI passing

Since Sep 28Pushed 4mo agoCompare

[ Source](https://github.com/cloverphp/framework)[ Packagist](https://packagist.org/packages/cloverphp/framework)[ Docs](https://github.com/cloverphp/clover)[ Fund](https://www.buymeacoffee.com/codewithsushil)[ GitHub Sponsors](https://github.com/CodeWithSushil)[ RSS](/packages/cloverphp-framework/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (7)Versions (3)Used By (1)

[![Clover PHP](https://raw.githubusercontent.com/cloverphp/.github/refs/heads/main/profile/art/logo.png)](https://raw.githubusercontent.com/cloverphp/.github/refs/heads/main/profile/art/logo.png)Clover PHP is a modern, unopinionated, and lightweight Express.js-style framework for PHP 8.4. It helps you build REST APIs, web apps, and microservices with the simplicity of Express.js and the power of modern PHP.

[![Tests](https://github.com/cloverphp/framework/actions/workflows/tests.yml/badge.svg)](https://github.com/cloverphp/framework/actions/workflows/tests.yml)[![Packagist Version](https://camo.githubusercontent.com/eef5dd9bd56b41941c084b23a3eaca0e7d675fbdccc391c5ab6c7412fb94d7cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c6f7665727068702f6672616d65776f726b3f7374796c653d666c6174266c6f676f3d636f6d706f736572266c6f676f436f6c6f723d253233666666)](https://camo.githubusercontent.com/eef5dd9bd56b41941c084b23a3eaca0e7d675fbdccc391c5ab6c7412fb94d7cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c6f7665727068702f6672616d65776f726b3f7374796c653d666c6174266c6f676f3d636f6d706f736572266c6f676f436f6c6f723d253233666666)[![Packagist Dependency Version](https://camo.githubusercontent.com/48abc9d146b48880938fc0f932d7eeaf7ffb4ffaf906c4cf8fcb4057d54a81cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f636c6f7665727068702f6672616d65776f726b2f7068703f7374796c653d666c6174266c6f676f3d706870266c6f676f436f6c6f723d626c7565266c6162656c3d50485026636f6c6f723d626c7565)](https://camo.githubusercontent.com/48abc9d146b48880938fc0f932d7eeaf7ffb4ffaf906c4cf8fcb4057d54a81cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f636c6f7665727068702f6672616d65776f726b2f7068703f7374796c653d666c6174266c6f676f3d706870266c6f676f436f6c6f723d626c7565266c6162656c3d50485026636f6c6f723d626c7565)[![Packagist License](https://camo.githubusercontent.com/cb6c7cedbd6e1c439beb1e1a847954348363618f45b05863d40ef11657f464bd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636c6f7665727068702f6672616d65776f726b3f7374796c653d666c6174266c6162656c3d4c6963656e736526636f6c6f723d626c7565)](https://camo.githubusercontent.com/cb6c7cedbd6e1c439beb1e1a847954348363618f45b05863d40ef11657f464bd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636c6f7665727068702f6672616d65776f726b3f7374796c653d666c6174266c6162656c3d4c6963656e736526636f6c6f723d626c7565)[![Packagist Downloads](https://camo.githubusercontent.com/46c127bebcdbdc779dfff3c77e0f74a51b549fa06b1e4be82e7d1c4c851a89b3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c6f7665727068702f6672616d65776f726b3f7374796c653d666c6174266c6f676f3d7061636b6167697374266c6162656c3d446f776e6c6f61647326636f6c6f723d626c7565)](https://camo.githubusercontent.com/46c127bebcdbdc779dfff3c77e0f74a51b549fa06b1e4be82e7d1c4c851a89b3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c6f7665727068702f6672616d65776f726b3f7374796c653d666c6174266c6f676f3d7061636b6167697374266c6162656c3d446f776e6c6f61647326636f6c6f723d626c7565)[![Packagist Stars](https://camo.githubusercontent.com/b451aeec16842e124b433236cb6f917149100a0e53bc0cb7f18ae4e18ca8aa5a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f636c6f7665727068702f6672616d65776f726b3f7374796c653d666c6174266c6f676f3d676974687562266c6f676f436f6c6f723d253233666666666666266c6162656c3d2546302539462538432539462532305374617273)](https://camo.githubusercontent.com/b451aeec16842e124b433236cb6f917149100a0e53bc0cb7f18ae4e18ca8aa5a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f636c6f7665727068702f6672616d65776f726b3f7374796c653d666c6174266c6f676f3d676974687562266c6f676f436f6c6f723d253233666666666666266c6162656c3d2546302539462538432539462532305374617273)

---

✨ Features
----------

[](#-features)

🚀 Minimal &amp; Fast – Simple API design, inspired by Express.js.

⚡ Async Support – Built with PHP Fibers &amp; AMPHP for non-blocking I/O.

🗂️ Routing System – Intuitive get(), post(), etc., with async router support.

🔑 Auth Ready – Supports sessions, cookies, and JWT-based authentication.

🧩 Extensible Middleware – Add global and route-level middleware for logging, security, and validation.

💾 Database Agnostic – Works with both SQL and NoSQL databases.(Upcoming)

🛠️ MVC Support – Controllers, models, and views with interfaces for clean architecture.

🛡️ Error Handling &amp; Logging – Developer-friendly error responses and logging tools.

🎨 Unopinionated – Flexible enough for small apps or large enterprise projects.

📦 Composer &amp; PSR-12 – Modern PHP practices with full Composer/PSR-12 compliance.

---

📦 Installation
--------------

[](#-installation)

```
composer create-project cloverphp/clover my-app
```

```
cd my-app
```

```
php -S localhost:3000 -t public
```

---

🚀 Quick Start
-------------

[](#-quick-start)

```
