GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • cloverphp
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles

This view

  • Original page
  • New address

GeezerVison is showing github.com β€” πŸ€ Clover PHP

README.md

Clover PHP 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 Packagist Version Packagist Dependency Version Packagist License Packagist Downloads Packagist Stars


✨ Features

πŸš€ Minimal & Fast – Simple API design, inspired by Express.js.

⚑ Async Support – Built with PHP Fibers & 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 & Logging – Developer-friendly error responses and logging tools.

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

πŸ“¦ Composer & PSR-12 – Modern PHP practices with full Composer/PSR-12 compliance.


πŸ“¦ Installation

composer create-project cloverphp/clover my-app
cd my-app
php -S localhost:3000 -t public

πŸš€ Quick Start

<?php

require_once __DIR__ . "/vendor/autoload.php";

use Clover\Clover;
use Clover\Http\Request;
use Clover\Http\Response;

$app = new Clover();
$router = $app->router();

// Home route
$router->get("/", fn(Request $req, Response $res) =>
$res->send("<h1>Welcome to πŸ€ Clover PHP!</h1>"));

$router->post("/", fn(Request $req, Response $res) =>
    $res->json(['name' => 'Clover PHP!'])
);

$app->run(3000, true);

πŸ“‚ Project Structure

my-app/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ Controllers/
β”‚   β”œβ”€β”€ Models/
β”‚   └── Views/
β”œβ”€β”€ public/
β”‚   └── index.php
β”œβ”€β”€ vendor/
β”œβ”€β”€ composer.json
└── README.md

πŸ”‘ Example Middleware

$app->use(function (Request $req, Response $res, callable $next) {
    $res->setHeader("X-Powered-By", "Clover PHP");
    $next($req, $res);
});

πŸ›‘οΈ License

Clover PHP is open-sourced software licensed under the Packagist License Developed by @CodeWithSushil.


Pinned Loading

  1. clover clover Public

    πŸ€ Clover PHP: a modern, unopinionated, and lightweight framework.

    PHP 1 1

  2. framework framework Public

    Clover PHP Framework.

    PHP 1

Repositories

Loading
Type
Language
Sort
Showing 10 of 15 repositories
  • framework Public

    Clover PHP Framework.

    Uh oh!

    There was an error while loading. Please reload this page.

    cloverphp/framework's past year of commit activity
    PHP 1 MIT 0 0 0 Updated Nov 8, 2026
  • clover Public

    πŸ€ Clover PHP: a modern, unopinionated, and lightweight framework.

    Uh oh!

    There was an error while loading. Please reload this page.

    cloverphp/clover's past year of commit activity
    PHP 1 MIT 1 0 0 Updated Oct 25, 2026
  • .github Public

    Uh oh!

    There was an error while loading. Please reload this page.

    cloverphp/.github's past year of commit activity
    1 0 0 0 Updated Oct 10, 2025
  • clover-http Public

    Clover HTTP

    Uh oh!

    There was an error while loading. Please reload this page.

    cloverphp/clover-http's past year of commit activity
    PHP 1 MIT 0 0 0 Updated Oct 8, 2025
  • Proxy Public

    Proxy server

    Uh oh!

    There was an error while loading. Please reload this page.

    cloverphp/Proxy's past year of commit activity
    PHP 1 MIT 0 0 0 Updated Oct 6, 2025
  • socket Public

    Web socket: Realtime communication with Client and Server.

    Uh oh!

    There was an error while loading. Please reload this page.

    cloverphp/socket's past year of commit activity
    PHP 1 MIT 0 0 0 Updated Oct 3, 2025
  • Router Public

    Clover Router

    Uh oh!

    There was an error while loading. Please reload this page.

    cloverphp/Router's past year of commit activity
    PHP 1 MIT 0 0 0 Updated Oct 3, 2025
  • sketch Public

    Clover Sketch: Template Engine; fully inspire by Vue.js and Laravel Blade.

    Uh oh!

    There was an error while loading. Please reload this page.

    cloverphp/sketch's past year of commit activity
    PHP 1 MIT 0 0 0 Updated Oct 3, 2025
  • clover-cache Public

    Clover πŸ€ Cache

    Uh oh!

    There was an error while loading. Please reload this page.

    cloverphp/clover-cache's past year of commit activity
    PHP 1 MIT 0 0 0 Updated Oct 3, 2025
  • clover-cookie Public

    πŸͺ cookie

    Uh oh!

    There was an error while loading. Please reload this page.

    cloverphp/clover-cookie's past year of commit activity
    PHP 1 MIT 0 0 0 Updated Oct 3, 2025
View all repositories

People

@CodeWithSushil

Top languages

Loading…

Uh oh!

There was an error while loading. Please reload this page.

Most used topics

Loading…

Uh oh!

There was an error while loading. Please reload this page.

You are visitor 01402503 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.