{"id":13699810,"url":"https://github.com/chubbyphp/chubbyphp-framework","last_synced_at":"2025-05-16T08:04:44.612Z","repository":{"id":34506285,"uuid":"178733129","full_name":"chubbyphp/chubbyphp-framework","owner":"chubbyphp","description":"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.","archived":false,"fork":false,"pushed_at":"2025-03-20T05:47:20.000Z","size":737,"stargazers_count":126,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-08T19:24:17.293Z","etag":null,"topics":["api","chubbyphp","chubbyphp-framework","framework","micro-framework","microframework","middleware","php-micro-framework","psr-11","psr-15","psr-17","psr-7"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chubbyphp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-31T19:32:32.000Z","updated_at":"2025-03-20T05:47:23.000Z","dependencies_parsed_at":"2024-08-10T21:06:51.324Z","dependency_job_id":"7d3e38fb-94e8-4382-9871-6d9789840bd1","html_url":"https://github.com/chubbyphp/chubbyphp-framework","commit_stats":{"total_commits":381,"total_committers":6,"mean_commits":63.5,"dds":"0.19685039370078738","last_synced_commit":"2135da5d25e61a50837660cc406fd1605ce498f5"},"previous_names":[],"tags_count":62,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp%2Fchubbyphp-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp%2Fchubbyphp-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp%2Fchubbyphp-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp%2Fchubbyphp-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chubbyphp","download_url":"https://codeload.github.com/chubbyphp/chubbyphp-framework/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254493378,"owners_count":22080126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","chubbyphp","chubbyphp-framework","framework","micro-framework","microframework","middleware","php-micro-framework","psr-11","psr-15","psr-17","psr-7"],"created_at":"2024-08-02T20:00:43.789Z","updated_at":"2025-05-16T08:04:39.574Z","avatar_url":"https://github.com/chubbyphp.png","language":"PHP","readme":"# chubbyphp-framework\n\n[![CI](https://github.com/chubbyphp/chubbyphp-framework/actions/workflows/ci.yml/badge.svg)](https://github.com/chubbyphp/chubbyphp-framework/actions/workflows/ci.yml)\n[![Coverage Status](https://coveralls.io/repos/github/chubbyphp/chubbyphp-framework/badge.svg?branch=master)](https://coveralls.io/github/chubbyphp/chubbyphp-framework?branch=master)\n[![Mutation testing badge](https://img.shields.io/endpoint?style=flat\u0026url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fchubbyphp%2Fchubbyphp-framework%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/chubbyphp/chubbyphp-framework/master)\n[![Latest Stable Version](https://poser.pugx.org/chubbyphp/chubbyphp-framework/v)](https://packagist.org/packages/chubbyphp/chubbyphp-framework)\n[![Total Downloads](https://poser.pugx.org/chubbyphp/chubbyphp-framework/downloads)](https://packagist.org/packages/chubbyphp/chubbyphp-framework)\n[![Monthly Downloads](https://poser.pugx.org/chubbyphp/chubbyphp-framework/d/monthly)](https://packagist.org/packages/chubbyphp/chubbyphp-framework)\n\n[![bugs](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework\u0026metric=bugs)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)\n[![code_smells](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework\u0026metric=code_smells)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)\n[![coverage](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)\n[![duplicated_lines_density](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework\u0026metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)\n[![ncloc](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework\u0026metric=ncloc)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)\n[![sqale_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)\n[![alert_status](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)\n[![reliability_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)\n[![security_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)\n[![sqale_index](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework\u0026metric=sqale_index)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)\n[![vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework\u0026metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework)\n\n## Description\n\nA minimal, highly [performant][1] middleware [PSR-15][8] microframework built with as little complexity as possible, aimed primarily at those developers who want to understand all the vendors they use.\n\n * [Basic Coding Standard (1)][2]\n * [Coding Style Guide (2)][3]\n * [Logger Interface (3)][4]\n * [Autoloading Standard (4)][5]\n * [HTTP Message Interface (7)][6]\n * [Container Interface (11)][7]\n * [HTTP Handlers (15)][8]\n * [HTTP Factories (17)][9]\n\n![Workflow](resources/workflow.svg \"Workflow\")\n\n## Requirements\n\n * php: ^8.2\n * [chubbyphp/chubbyphp-http-exception][20]: ^1.2\n * [psr/container][21]: ^1.1.2|^2.0.2\n * [psr/http-factory-implementation][22]: ^1.0\n * [psr/http-factory][23]: ^1.1\n * [psr/http-message-implementation][24]: ^1.0|^2.0\n * [psr/http-message][25]: ^1.1|^2.0\n * [psr/http-server-handler][26]: ^1.0.2\n * [psr/http-server-middleware][27]: ^1.0.2\n * [psr/log][28]: ^2.0|^3.0.2\n\n## Suggest\n\n### Router\n\nAny Router which implements `Chubbyphp\\Framework\\Router\\RouteMatcherInterface` can be used.\n\n * [chubbyphp/chubbyphp-framework-router-fastroute][30]: ^2.1\n### PSR 7 / PSR 17\n\n * [guzzlehttp/psr7][40]: ^2.7 (with [http-interop/http-factory-guzzle][41]: ^1.2)\n * [laminas/laminas-diactoros][42]: ^3.5\n * [nyholm/psr7][43]: ^1.8.2\n * [slim/psr7][44]: ^1.7\n * [sunrise/http-message][45]: ^3.2\n\n## Installation\n\nThrough [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-framework][60].\n\n```bash\ncomposer require chubbyphp/chubbyphp-framework \"^5.2\" \\\n    chubbyphp/chubbyphp-framework-router-fastroute \"^2.1\" \\\n    slim/psr7 \"^1.7\"\n```\n\n## Usage\n\n```php\n\u003c?php\n\ndeclare(strict_types=1);\n\nnamespace App;\n\nuse Chubbyphp\\Framework\\Application;\nuse Chubbyphp\\Framework\\Middleware\\ExceptionMiddleware;\nuse Chubbyphp\\Framework\\Middleware\\RouteMatcherMiddleware;\nuse Chubbyphp\\Framework\\RequestHandler\\CallbackRequestHandler;\nuse Chubbyphp\\Framework\\Router\\FastRoute\\RouteMatcher;\nuse Chubbyphp\\Framework\\Router\\Route;\nuse Chubbyphp\\Framework\\Router\\RoutesByName;\nuse Psr\\Http\\Message\\ServerRequestInterface;\nuse Slim\\Psr7\\Factory\\ResponseFactory;\nuse Slim\\Psr7\\Factory\\ServerRequestFactory;\n\nrequire __DIR__.'/vendor/autoload.php';\n\n$responseFactory = new ResponseFactory();\n\n$app = new Application([\n    new ExceptionMiddleware($responseFactory, true),\n    new RouteMatcherMiddleware(new RouteMatcher(new RoutesByName([\n        Route::get('/hello/{name:[a-z]+}', 'hello', new CallbackRequestHandler(\n            static function (ServerRequestInterface $request) use ($responseFactory) {\n                $response = $responseFactory-\u003ecreateResponse();\n                $response-\u003egetBody()-\u003ewrite(sprintf('Hello, %s', $request-\u003egetAttribute('name')));\n\n                return $response;\n            }\n        ))\n    ]))),\n]);\n\n$app-\u003eemit($app-\u003ehandle((new ServerRequestFactory())-\u003ecreateFromGlobals()));\n```\n\n### Emitter\n\n * [Emitter][65]\n\n### Middleware\n\n * [CallbackMiddleware][70]\n * [ExceptionMiddleware][71]\n * [LazyMiddleware][72]\n * [MiddlewareDispatcher][73]\n * [RouteMatcherMiddleware][74]\n * [SlimCallbackMiddleware][75]\n * [SlimLazyMiddleware][76]\n\n### RequestHandler\n\n * [CallbackRequestHandler][80]\n * [LazyRequestHandler][81]\n * [RouteRequestHandler][82]\n * [SlimCallbackRequestHandler][83]\n * [SlimLazyRequestHandler][84]\n\n### Router\n\n * [Group][90]\n * [Route][91]\n\n## Server\n\n * [Builtin (development only)][100]\n * [Nginx][101]\n * [ReactPHP][102]\n * [Roadrunner][103]\n * [Swoole][104]\n * [Workerman][105]\n\n## Skeleton\n\n * [chubbyphp/chubbyphp-framework-skeleton][200]\n * [chubbyphp/petstore][201]\n\n## Migration\n\n * [4.x to 5.x][213]\n * [3.x to 4.x][212]\n * [2.x to 3.x][211]\n * [1.x to 2.x][210]\n * [Slim to Chubbyphp][219]\n\n## Copyright\n\n2025 Dominik Zogg\n\n[1]: https://web-frameworks-benchmark.netlify.app/result\n\n[2]: https://www.php-fig.org/psr/psr-1\n[3]: https://www.php-fig.org/psr/psr-2\n[4]: https://www.php-fig.org/psr/psr-3\n[5]: https://www.php-fig.org/psr/psr-4\n[6]: https://www.php-fig.org/psr/psr-7\n[7]: https://www.php-fig.org/psr/psr-11\n[8]: https://www.php-fig.org/psr/psr-15\n[9]: https://www.php-fig.org/psr/psr-17\n\n[15]: https://travis-ci.org/chubbyphp/chubbyphp-framework\n\n[20]: https://packagist.org/packages/chubbyphp/chubbyphp-http-exception\n[21]: https://packagist.org/packages/psr/container\n[22]: https://packagist.org/packages/psr/http-factory-implementation\n[23]: https://packagist.org/packages/psr/http-factory\n[24]: https://packagist.org/packages/psr/http-message-implementation\n[25]: https://packagist.org/packages/psr/http-message\n[26]: https://packagist.org/packages/psr/http-server-handler\n[27]: https://packagist.org/packages/psr/http-server-middleware\n[28]: https://packagist.org/packages/psr/log\n\n[30]: https://github.com/chubbyphp/chubbyphp-framework-router-fastroute#usage\n\n[40]: https://packagist.org/packages/guzzlehttp/psr7\n[41]: https://packagist.org/packages/http-interop/http-factory-guzzle\n[42]: https://packagist.org/packages/laminas/laminas-diactoros\n[43]: https://packagist.org/packages/nyholm/psr7\n[44]: https://packagist.org/packages/slim/psr7\n[45]: https://packagist.org/packages/sunrise/http-message\n\n[60]: https://packagist.org/packages/chubbyphp/chubbyphp-framework\n\n[65]: doc/Emitter/Emitter.md\n\n[70]: doc/Middleware/CallbackMiddleware.md\n[71]: doc/Middleware/ExceptionMiddleware.md\n[72]: doc/Middleware/LazyMiddleware.md\n[73]: doc/Middleware/MiddlewareDispatcher.md\n[74]: doc/Middleware/RouteMatcherMiddleware.md\n[75]: doc/Middleware/SlimCallbackMiddleware.md\n[76]: doc/Middleware/SlimLazyMiddleware.md\n\n[80]: doc/RequestHandler/CallbackRequestHandler.md\n[81]: doc/RequestHandler/LazyRequestHandler.md\n[82]: doc/RequestHandler/RouteRequestHandler.md\n[83]: doc/RequestHandler/SlimCallbackRequestHandler.md\n[84]: doc/RequestHandler/SlimLazyRequestHandler.md\n\n[90]: doc/Router/Group.md\n[91]: doc/Router/Route.md\n\n[100]: doc/Server/Builtin.md\n[101]: doc/Server/Nginx.md\n[102]: doc/Server/ReactPHP.md\n[103]: doc/Server/Roadrunner.md\n[104]: https://github.com/chubbyphp/chubbyphp-swoole-request-handler#usage\n[105]: https://github.com/chubbyphp/chubbyphp-workerman-request-handler#usage\n\n[200]: https://packagist.org/packages/chubbyphp/chubbyphp-framework-skeleton\n[201]: https://packagist.org/packages/chubbyphp/petstore\n\n[210]: doc/Migration/1.x-2.x.md\n[211]: doc/Migration/2.x-3.x.md\n[212]: doc/Migration/3.x-4.x.md\n[213]: doc/Migration/4.x-5.x.md\n\n[219]: doc/Migration/Slim-Chubbyphp.md\n","funding_links":[],"categories":["Frameworks"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchubbyphp%2Fchubbyphp-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchubbyphp%2Fchubbyphp-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchubbyphp%2Fchubbyphp-framework/lists"}