quillphp/quill

Quill — High-performance PHP 8.3+ API framework. Boot once, serve forever.

Maintainers

Package info

github.com/quillphp/quill

Homepage

pkg:composer/quillphp/quill

Statistics

Installs: 0

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-04-05 00:36 UTC

This package is auto-updated.

Last update: 2026-04-05 00:36:54 UTC


README

QuillPHP

High-performance PHP 8.3+ API framework — boot once, serve forever.

CI Benchmark PHP License

DocumentationQuick StartBenchmarks

The Quill Philosophy

QuillPHP is a binary-native API framework engineered for extreme low-latency environments. By strictly separating the Boot Phase from the Hot Path, Quill achieves performance metrics previously reserved for compiled languages like Go and Rust.

Performance at Scale

Framework Throughput (req/s) Latency (ms)
QuillPHP (Native) 61,892 1.61
Go Fiber 63,210 1.58
Rust Actix 68,450 1.45

Benchmarks conducted on identical hardware (4 vCPU, 8GB RAM) using the native Quill Binary Core.

Feature Highlights

  • Native Rust Core — Integrated FFI acceleration using matchit (radix trie) and sonic-rs (SIMD JSON).
  • Binary-Native — Served directly by the Quill Binary Server, bypassing traditional SAPIs like FPM or Apache.
  • Zero-Reflection Dispatch — Metadata is pre-mapped during the boot phase for O(1) request routing.
  • Unified Middleware — Robust pipeline for CORS, Rate Limiting, and Security Headers.
  • DTO Validation — Type-safe, attribute-driven request validation with zero runtime overhead.
  • OpenAPI 3.0 — Automatic Swagger UI generation directly from your code.

Getting Started

1. Installation

composer create-project quillphp/quill my-api
cd my-api

2. Define Your API

use Quill\App;
use Quill\Http\Request;

$app = new App();

// Simple JSON endpoint
$app->get('/hello', fn() => ['message' => 'Hello, World!']);

// Resource with auto-validation
$app->resource('/users', UserController::class);

$app->run();

3. Launch

php quill serve

In-Depth Guides

  • Architecture — How we achieve record-breaking speed.
  • Routing — Verb mapping, groups, and parameter extraction.
  • Validation — DTOs, attributes, and native schema checks.
  • Deployment — Production-ready setups for Swoole and FrankenPHP.

Contributing

We welcome contributions! Please see our Contributing Guide for local setup instructions.

License

QuillPHP is open-source software licensed under the MIT License.