{"id":43879984,"url":"https://github.com/chubbyphp-legacy/chubbyphp-framework-router-aura","last_synced_at":"2026-02-06T15:16:04.314Z","repository":{"id":56952665,"uuid":"274212705","full_name":"chubbyphp-legacy/chubbyphp-framework-router-aura","owner":"chubbyphp-legacy","description":"Aura Router implementation for chubbyphp-framework.","archived":false,"fork":false,"pushed_at":"2023-12-02T17:46:13.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-02T04:18:57.852Z","etag":null,"topics":["chubbyphp-framework","psr-15","psr-7","routing"],"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-legacy.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}},"created_at":"2020-06-22T18:24:33.000Z","updated_at":"2023-12-02T17:46:52.000Z","dependencies_parsed_at":"2023-12-04T15:50:05.094Z","dependency_job_id":null,"html_url":"https://github.com/chubbyphp-legacy/chubbyphp-framework-router-aura","commit_stats":null,"previous_names":["chubbyphp-legacy/chubbyphp-framework-router-aura","chubbyphp/chubbyphp-framework-router-aura"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/chubbyphp-legacy/chubbyphp-framework-router-aura","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp-legacy%2Fchubbyphp-framework-router-aura","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp-legacy%2Fchubbyphp-framework-router-aura/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp-legacy%2Fchubbyphp-framework-router-aura/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp-legacy%2Fchubbyphp-framework-router-aura/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chubbyphp-legacy","download_url":"https://codeload.github.com/chubbyphp-legacy/chubbyphp-framework-router-aura/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp-legacy%2Fchubbyphp-framework-router-aura/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29166386,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T14:37:12.680Z","status":"ssl_error","status_checked_at":"2026-02-06T14:36:22.973Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["chubbyphp-framework","psr-15","psr-7","routing"],"created_at":"2026-02-06T15:16:03.703Z","updated_at":"2026-02-06T15:16:04.294Z","avatar_url":"https://github.com/chubbyphp-legacy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chubbyphp-framework-router-aura\n\n[![CI](https://github.com/chubbyphp/chubbyphp-framework-router-aura/workflows/CI/badge.svg?branch=master)](https://github.com/chubbyphp/chubbyphp-framework-router-aura/actions?query=workflow%3ACI)\n[![Coverage Status](https://coveralls.io/repos/github/chubbyphp/chubbyphp-framework-router-aura/badge.svg?branch=master)](https://coveralls.io/github/chubbyphp/chubbyphp-framework-router-aura?branch=master)\n[![Infection MSI](https://badge.stryker-mutator.io/github.com/chubbyphp/chubbyphp-framework-router-aura/master)](https://dashboard.stryker-mutator.io/reports/github.com/chubbyphp/chubbyphp-framework-router-aura/master)\n[![Latest Stable Version](https://poser.pugx.org/chubbyphp/chubbyphp-framework-router-aura/v/stable.png)](https://packagist.org/packages/chubbyphp/chubbyphp-framework-router-aura)\n[![Total Downloads](https://poser.pugx.org/chubbyphp/chubbyphp-framework-router-aura/downloads.png)](https://packagist.org/packages/chubbyphp/chubbyphp-framework-router-aura)\n[![Monthly Downloads](https://poser.pugx.org/chubbyphp/chubbyphp-framework-router-aura/d/monthly)](https://packagist.org/packages/chubbyphp/chubbyphp-framework-router-aura)\n\n[![bugs](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework-router-aura\u0026metric=bugs)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)\n[![code_smells](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework-router-aura\u0026metric=code_smells)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)\n[![coverage](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework-router-aura\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)\n[![duplicated_lines_density](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework-router-aura\u0026metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)\n[![ncloc](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework-router-aura\u0026metric=ncloc)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)\n[![sqale_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework-router-aura\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)\n[![alert_status](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework-router-aura\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)\n[![reliability_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework-router-aura\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)\n[![security_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework-router-aura\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)\n[![sqale_index](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework-router-aura\u0026metric=sqale_index)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)\n[![vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework-router-aura\u0026metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)\n\n## Description\n\nAura Router implementation for [chubbyphp-framework][1].\n\nDEPRECATED: I suggest to use [chubbyphp-framework-router-fastroute][11].\n\n## Requirements\n\n * php: ^8.0\n * [aura/router][2]: ^3.1\n * [chubbyphp/chubbyphp-framework][1]: ^5.0.3\n * [chubbyphp/chubbyphp-http-exception][3]: ^1.0.1\n * [psr/http-message][4]: ^1.0.1\n\n## Installation\n\nThrough [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-framework-router-aura][10].\n\n```bash\ncomposer require chubbyphp/chubbyphp-framework-router-aura \"^2.0\"\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\\RouterMiddleware;\nuse Chubbyphp\\Framework\\RequestHandler\\CallbackRequestHandler;\nuse Chubbyphp\\Framework\\Router\\Aura\\Router;\nuse Chubbyphp\\Framework\\Router\\Route;\nuse Psr\\Http\\Message\\ServerRequestInterface;\nuse Slim\\Psr7\\Factory\\ResponseFactory;\nuse Slim\\Psr7\\Factory\\ServerRequestFactory;\n\n$loader = require __DIR__.'/vendor/autoload.php';\n\n$responseFactory = new ResponseFactory();\n\n$app = new Application([\n    new ExceptionMiddleware($responseFactory, true),\n    new RouterMiddleware(new Router([\n        Route::get('/hello/{name}', 'hello', new CallbackRequestHandler(\n            function (ServerRequestInterface $request) use ($responseFactory) {\n                $name = $request-\u003egetAttribute('name');\n                $response = $responseFactory-\u003ecreateResponse();\n                $response-\u003egetBody()-\u003ewrite(sprintf('Hello, %s', $name));\n\n                return $response;\n            }\n        ), [], [Router::PATH_TOKENS =\u003e ['name' =\u003e '[a-z]+']])\n    ])),\n]);\n\n$app-\u003eemit($app-\u003ehandle((new ServerRequestFactory())-\u003ecreateFromGlobals()));\n```\n\n## Copyright\n\n2023 Dominik Zogg\n\n[1]: https://packagist.org/packages/chubbyphp/chubbyphp-framework\n[2]: https://packagist.org/packages/aura/router\n[3]: https://packagist.org/packages/chubbyphp/chubbyphp-http-exception\n[4]: https://packagist.org/packages/psr/http-message\n[10]: https://packagist.org/packages/chubbyphp/chubbyphp-framework-router-aura\n[11]: https://packagist.org/packages/chubbyphp/chubbyphp-framework-router-fastroute\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchubbyphp-legacy%2Fchubbyphp-framework-router-aura","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchubbyphp-legacy%2Fchubbyphp-framework-router-aura","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchubbyphp-legacy%2Fchubbyphp-framework-router-aura/lists"}