PHPackages                             infocyph/webrick - 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. infocyph/webrick

ActiveLibrary[Framework](/categories/framework)

infocyph/webrick
================

A fast, modern PHP router with production-grade middleware, signed &amp; temporary URLs, smart responses and first-class route caching.

1.01.1(6mo ago)01.5k↓50%[1 PRs](https://github.com/infocyph/Webrick/pulls)MITPHPPHP &gt;=8.4CI passing

Since Oct 22Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/infocyph/Webrick)[ Packagist](https://packagist.org/packages/infocyph/webrick)[ RSS](/packages/infocyph-webrick/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (9)Versions (6)Used By (0)

Webrick Router
==============

[](#webrick-router)

A fast, modern PHP router with production-grade middleware, signed &amp; temporary URLs, smart responses, and first-class route caching.

[![Security & Standards](https://github.com/infocyph/Webrick/actions/workflows/build.yml/badge.svg)](https://github.com/infocyph/Webrick/actions/workflows/build.yml)[![Packagist Downloads](https://camo.githubusercontent.com/90bb997619f03adb0488a1683654c06d08ae211ae461df6f3f2e68d4bb4e58fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e666f637970682f5765627269636b3f636f6c6f723d677265656e266c696e6b3d68747470732533412532462532467061636b61676973742e6f72672532467061636b61676573253246696e666f637970682532465765627269636b)](https://camo.githubusercontent.com/90bb997619f03adb0488a1683654c06d08ae211ae461df6f3f2e68d4bb4e58fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e666f637970682f5765627269636b3f636f6c6f723d677265656e266c696e6b3d68747470732533412532462532467061636b61676973742e6f72672532467061636b61676573253246696e666f637970682532465765627269636b)[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://opensource.org/licenses/MIT)[![Packagist Version](https://camo.githubusercontent.com/662ccf542492f6b2777babb438dd411163dadb551a830812898556a89a4ffc39/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e666f637970682f5765627269636b)](https://camo.githubusercontent.com/662ccf542492f6b2777babb438dd411163dadb551a830812898556a89a4ffc39/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e666f637970682f5765627269636b)[![Packagist PHP Version](https://camo.githubusercontent.com/8d5899e69e519c7dff12198b92cfff8235177156bfc4a0094703abc7fceccc62/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f696e666f637970682f5765627269636b2f706870)](https://camo.githubusercontent.com/8d5899e69e519c7dff12198b92cfff8235177156bfc4a0094703abc7fceccc62/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f696e666f637970682f5765627269636b2f706870)[![GitHub Code Size](https://camo.githubusercontent.com/2916b8628d87dc996bc42a8e574825c3fe6f553a1a867c6bd718029948fda050/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f696e666f637970682f5765627269636b)](https://camo.githubusercontent.com/2916b8628d87dc996bc42a8e574825c3fe6f553a1a867c6bd718029948fda050/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f696e666f637970682f5765627269636b)

---

Highlights
----------

[](#highlights)

- **🚀 Fast routing** – Named routes, groups, domains, resources, attribute discovery
- **🔒 Signed URLs** – Built-in URL signing with expiration and verification middleware
- **⚙️ Production middleware** – 15+ battle-tested middleware for security, caching, compression, CORS
- **📦 Smart responses** – Auto content negotiation, streaming, downloads, JSON helpers
- **💾 Route caching** – Sharded or fused cache for instant cold starts
- **🔌 Sudo PSR-compatible** – Works with PSR-7/15/17 ecosystems

> **Requirements:** PHP 8.4+ | Production-ready with OPcache + route caching

---

Installation
------------

[](#installation)

```
composer require infocyph/webrick
```

---

Quick Start
-----------

[](#quick-start)

### Minimal Example

[](#minimal-example)

```
