PHPackages                             cloverphp/clover - 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/clover

ActiveProject[Framework](/categories/framework)

cloverphp/clover
================

Clover PHP: a modern, unopinionated, and lightweight framework.

v0.0.1(7mo ago)221[1 issues](https://github.com/cloverphp/clover/issues)MITPHPPHP ^8.2CI passing

Since Sep 29Pushed 2mo ago1 watchersCompare

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

READMEChangelog (1)Dependencies (5)Versions (3)Used By (0)

[![CloverPHP](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.

[![Code Coverage](https://github.com/cloverphp/clover/actions/workflows/code-coverage.yml/badge.svg?branch=main)](https://github.com/cloverphp/clover/actions/workflows/code-coverage.yml)[![CodeQL](https://github.com/cloverphp/clover/actions/workflows/github-code-scanning/codeql/badge.svg?branch=main)](https://github.com/cloverphp/clover/actions/workflows/github-code-scanning/codeql)[![Tests](https://github.com/cloverphp/clover/actions/workflows/tests.yml/badge.svg)](https://github.com/cloverphp/clover/actions/workflows/tests.yml)[![Packagist Version](https://camo.githubusercontent.com/685d711b7fd403658d6aaec225845ec0a8e7dc74478c7b8da022a789263e2956/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c6f7665727068702f636c6f7665723f7374796c653d666c6174266c6f676f3d636f6d706f736572266c6f676f436f6c6f723d253233666666)](https://camo.githubusercontent.com/685d711b7fd403658d6aaec225845ec0a8e7dc74478c7b8da022a789263e2956/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c6f7665727068702f636c6f7665723f7374796c653d666c6174266c6f676f3d636f6d706f736572266c6f676f436f6c6f723d253233666666)[![Packagist Dependency Version](https://camo.githubusercontent.com/6424f02bd3e13336bd0c6c29c484445ab99fd3d84196ddfb500677df53e38189/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f636c6f7665727068702f636c6f7665722f7068703f7374796c653d666c6174266c6f676f3d706870266c6f676f436f6c6f723d626c7565266c6162656c3d50485026636f6c6f723d626c7565)](https://camo.githubusercontent.com/6424f02bd3e13336bd0c6c29c484445ab99fd3d84196ddfb500677df53e38189/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f636c6f7665727068702f636c6f7665722f7068703f7374796c653d666c6174266c6f676f3d706870266c6f676f436f6c6f723d626c7565266c6162656c3d50485026636f6c6f723d626c7565)[![Packagist License](https://camo.githubusercontent.com/f543d00bbe157bcae346a497eae8096299d41681256e667f71c85dee7ce4d9a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636c6f7665727068702f636c6f7665723f7374796c653d666c6174266c6162656c3d4c6963656e736526636f6c6f723d626c7565)](https://camo.githubusercontent.com/f543d00bbe157bcae346a497eae8096299d41681256e667f71c85dee7ce4d9a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636c6f7665727068702f636c6f7665723f7374796c653d666c6174266c6162656c3d4c6963656e736526636f6c6f723d626c7565)[![Packagist Downloads](https://camo.githubusercontent.com/e09c2e86561ff0473a51da2981a235696be9ebfa398b84f546862823007ae8cb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c6f7665727068702f636c6f7665723f7374796c653d666c6174266c6f676f3d7061636b6167697374266c6162656c3d446f776e6c6f61647326636f6c6f723d626c7565)](https://camo.githubusercontent.com/e09c2e86561ff0473a51da2981a235696be9ebfa398b84f546862823007ae8cb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c6f7665727068702f636c6f7665723f7374796c653d666c6174266c6f676f3d7061636b6167697374266c6162656c3d446f776e6c6f61647326636f6c6f723d626c7565)[![Packagist Stars](https://camo.githubusercontent.com/68f7acc9084726ff7f1909060733e4bf3a98c585f1a260633e5a44ef5074b59c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f636c6f7665727068702f636c6f7665723f7374796c653d666c6174266c6f676f3d676974687562266c6f676f436f6c6f723d253233666666666666266c6162656c3d2546302539462538432539462532305374617273)](https://camo.githubusercontent.com/68f7acc9084726ff7f1909060733e4bf3a98c585f1a260633e5a44ef5074b59c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f636c6f7665727068702f636c6f7665723f7374796c653d666c6174266c6f676f3d676974687562266c6f676f436f6c6f723d253233666666666666266c6162656c3d2546302539462538432539462532305374617273)

---

✨ 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)

```
