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

ActiveLibrary[Framework](/categories/framework)

chubbyphp/chubbyphp-framework
=============================

A minimal, highly performant middleware PSR-15 microframework built with as little complexity as possible, aimed primarily at those developers who want to understand all the vendors they use.

6.0.2(4mo ago)13544.4k—2.3%54MITPHPPHP ^8.3CI passing

Since Apr 25Pushed 3mo ago4 watchersCompare

[ Source](https://github.com/chubbyphp/chubbyphp-framework)[ Packagist](https://packagist.org/packages/chubbyphp/chubbyphp-framework)[ RSS](/packages/chubbyphp-chubbyphp-framework/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (22)Versions (71)Used By (4)

chubbyphp-framework
===================

[](#chubbyphp-framework)

[![CI](https://github.com/chubbyphp/chubbyphp-framework/actions/workflows/ci.yml/badge.svg)](https://github.com/chubbyphp/chubbyphp-framework/actions/workflows/ci.yml)[![Coverage Status](https://camo.githubusercontent.com/75a1c95391ce5deca948a4d07aad64af9c45fe55363a1beb8efb186642efd39a/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6368756262797068702f6368756262797068702d6672616d65776f726b2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/chubbyphp/chubbyphp-framework?branch=master)[![Mutation testing badge](https://camo.githubusercontent.com/de1a4bdf3e1956f2b53dff3a0086fa545e829e1668e312e691f200e15a69f720/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532466368756262797068702532466368756262797068702d6672616d65776f726b2532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/chubbyphp/chubbyphp-framework/master)[![Latest Stable Version](https://camo.githubusercontent.com/87b8fe1e25185cd344360870b36f0d250864b6b9090e7848675f5ca63892348c/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d6672616d65776f726b2f76)](https://packagist.org/packages/chubbyphp/chubbyphp-framework)[![Total Downloads](https://camo.githubusercontent.com/733ee7c4e7954dd6d0d6cb9e8cc5205aa896cdffe8b949f2377a80e707b8af9d/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d6672616d65776f726b2f646f776e6c6f616473)](https://packagist.org/packages/chubbyphp/chubbyphp-framework)[![Monthly Downloads](https://camo.githubusercontent.com/63e2efc0374418459a23f8558c317e4b2032b780b29034675a50a9711b4df31b/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d6672616d65776f726b2f642f6d6f6e74686c79)](https://packagist.org/packages/chubbyphp/chubbyphp-framework)

[![bugs](https://camo.githubusercontent.com/02af8e50bb51575c87f87bcfd8317f135d372acf97c6e3a04f697be4a485d140/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6672616d65776f726b266d65747269633d62756773)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)[![code_smells](https://camo.githubusercontent.com/75b554a45dfa43931409a64bb5fe13fc683aa18e505ee51927f99adaac4dd1cf/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6672616d65776f726b266d65747269633d636f64655f736d656c6c73)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)[![coverage](https://camo.githubusercontent.com/e1b97194233e35e026ba64468ecd5fd2a70ddf86e63d44275e1a47abad9bf8e2/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6672616d65776f726b266d65747269633d636f766572616765)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)[![duplicated_lines_density](https://camo.githubusercontent.com/688865b17bb4a7823d02073dd89d1456f098e1a5dd16c06dc7b455e61c9855c4/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6672616d65776f726b266d65747269633d6475706c6963617465645f6c696e65735f64656e73697479)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)[![ncloc](https://camo.githubusercontent.com/799053d25a47de86ca5220f9508cbfff9b96523ef20c4b826291b45acd8597ce/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6672616d65776f726b266d65747269633d6e636c6f63)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)[![sqale_rating](https://camo.githubusercontent.com/d8adb7f62dacd6e278336f41b3223be96a1643cbc7f3985afe5d77e1cc55c417/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6672616d65776f726b266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)[![alert_status](https://camo.githubusercontent.com/34d7018cf39cfba79550195390ac207c2ad890e8d63d9eeecbb5f135ae0657af/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6672616d65776f726b266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)[![reliability_rating](https://camo.githubusercontent.com/3227b96679365dd26795aa13b483f6a5924900c7a01d0a841a3e165f2d82f81f/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6672616d65776f726b266d65747269633d72656c696162696c6974795f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)[![security_rating](https://camo.githubusercontent.com/30046c6cfb7c1d11d55b37638f460971f0301018409e00707db252f6e631e75e/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6672616d65776f726b266d65747269633d73656375726974795f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)[![sqale_index](https://camo.githubusercontent.com/abeeb1402cc4e985a4d05317a34240f8d2bdced70f5ecfd9a956c27ecad487d5/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6672616d65776f726b266d65747269633d7371616c655f696e646578)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)[![vulnerabilities](https://camo.githubusercontent.com/52616fb5903d482832566108af384788a5bacb9abdaf7e687b58211ce4954042/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6672616d65776f726b266d65747269633d76756c6e65726162696c6974696573)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)

Description
-----------

[](#description)

A minimal, highly [performant](https://web-frameworks-benchmark.netlify.app/result) middleware [PSR-15](https://www.php-fig.org/psr/psr-15) microframework built with as little complexity as possible, aimed primarily at those developers who want to understand all the vendors they use.

- [Basic Coding Standard (1)](https://www.php-fig.org/psr/psr-1)
- [Coding Style Guide (2)](https://www.php-fig.org/psr/psr-2)
- [Logger Interface (3)](https://www.php-fig.org/psr/psr-3)
- [Autoloading Standard (4)](https://www.php-fig.org/psr/psr-4)
- [HTTP Message Interface (7)](https://www.php-fig.org/psr/psr-7)
- [Container Interface (11)](https://www.php-fig.org/psr/psr-11)
- [HTTP Handlers (15)](https://www.php-fig.org/psr/psr-15)
- [HTTP Factories (17)](https://www.php-fig.org/psr/psr-17)

[![Workflow](resources/workflow.svg "Workflow")](resources/workflow.svg)

Requirements
------------

[](#requirements)

- php: ^8.3
- [chubbyphp/chubbyphp-http-exception](https://packagist.org/packages/chubbyphp/chubbyphp-http-exception): ^1.3.2
- [psr/container](https://packagist.org/packages/psr/container): ^1.1.2|^2.0.2
- [psr/http-factory-implementation](https://packagist.org/packages/psr/http-factory-implementation): ^1.0
- [psr/http-factory](https://packagist.org/packages/psr/http-factory): ^1.1
- [psr/http-message-implementation](https://packagist.org/packages/psr/http-message-implementation): ^1.0|^2.0
- [psr/http-message](https://packagist.org/packages/psr/http-message): ^1.1|^2.0
- [psr/http-server-handler](https://packagist.org/packages/psr/http-server-handler): ^1.0.2
- [psr/http-server-middleware](https://packagist.org/packages/psr/http-server-middleware): ^1.0.2
- [psr/log](https://packagist.org/packages/psr/log): ^2.0|^3.0.2

Suggest
-------

[](#suggest)

### Router

[](#router)

Any Router which implements `Chubbyphp\Framework\Router\RouteMatcherInterface` can be used.

- [chubbyphp/chubbyphp-framework-router-fastroute](https://github.com/chubbyphp/chubbyphp-framework-router-fastroute#usage): ^2.3.3
- [chubbyphp/chubbyphp-framework-router-symfony](https://github.com/chubbyphp/chubbyphp-framework-router-symfony#usage): ^2.3.3

### PSR 7 / PSR 17

[](#psr-7--psr-17)

- [guzzlehttp/psr7](https://packagist.org/packages/guzzlehttp/psr7): ^2.8 (with [http-interop/http-factory-guzzle](https://packagist.org/packages/http-interop/http-factory-guzzle): ^1.2.1)
- [laminas/laminas-diactoros](https://packagist.org/packages/laminas/laminas-diactoros): ^3.8
- [nyholm/psr7](https://packagist.org/packages/nyholm/psr7): ^1.8.2
- [slim/psr7](https://packagist.org/packages/slim/psr7): ^1.8
- [sunrise/http-message](https://packagist.org/packages/sunrise/http-message): ^3.7

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

[](#installation)

Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-framework](https://packagist.org/packages/chubbyphp/chubbyphp-framework).

```
composer require chubbyphp/chubbyphp-framework "^6.0.2" \
    chubbyphp/chubbyphp-framework-router-fastroute "^2.3.3" \
    slim/psr7 "^1.8"
```

Usage
-----

[](#usage)

```
