https://github.com/chubbyphp-legacy/chubbyphp-framework-router-aura
Aura Router implementation for chubbyphp-framework.
https://github.com/chubbyphp-legacy/chubbyphp-framework-router-aura
chubbyphp-framework psr-15 psr-7 routing
Last synced: about 1 month ago
JSON representation
Aura Router implementation for chubbyphp-framework.
- Host: GitHub
- URL: https://github.com/chubbyphp-legacy/chubbyphp-framework-router-aura
- Owner: chubbyphp-legacy
- License: mit
- Created: 2020-06-22T18:24:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-02T17:46:13.000Z (over 2 years ago)
- Last Synced: 2024-05-02T04:18:57.852Z (almost 2 years ago)
- Topics: chubbyphp-framework, psr-15, psr-7, routing
- Language: PHP
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chubbyphp-framework-router-aura
[](https://github.com/chubbyphp/chubbyphp-framework-router-aura/actions?query=workflow%3ACI)
[](https://coveralls.io/github/chubbyphp/chubbyphp-framework-router-aura?branch=master)
[](https://dashboard.stryker-mutator.io/reports/github.com/chubbyphp/chubbyphp-framework-router-aura/master)
[](https://packagist.org/packages/chubbyphp/chubbyphp-framework-router-aura)
[](https://packagist.org/packages/chubbyphp/chubbyphp-framework-router-aura)
[](https://packagist.org/packages/chubbyphp/chubbyphp-framework-router-aura)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-aura)
## Description
Aura Router implementation for [chubbyphp-framework][1].
DEPRECATED: I suggest to use [chubbyphp-framework-router-fastroute][11].
## Requirements
* php: ^8.0
* [aura/router][2]: ^3.1
* [chubbyphp/chubbyphp-framework][1]: ^5.0.3
* [chubbyphp/chubbyphp-http-exception][3]: ^1.0.1
* [psr/http-message][4]: ^1.0.1
## Installation
Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-framework-router-aura][10].
```bash
composer require chubbyphp/chubbyphp-framework-router-aura "^2.0"
```
## Usage
```php
getAttribute('name');
$response = $responseFactory->createResponse();
$response->getBody()->write(sprintf('Hello, %s', $name));
return $response;
}
), [], [Router::PATH_TOKENS => ['name' => '[a-z]+']])
])),
]);
$app->emit($app->handle((new ServerRequestFactory())->createFromGlobals()));
```
## Copyright
2023 Dominik Zogg
[1]: https://packagist.org/packages/chubbyphp/chubbyphp-framework
[2]: https://packagist.org/packages/aura/router
[3]: https://packagist.org/packages/chubbyphp/chubbyphp-http-exception
[4]: https://packagist.org/packages/psr/http-message
[10]: https://packagist.org/packages/chubbyphp/chubbyphp-framework-router-aura
[11]: https://packagist.org/packages/chubbyphp/chubbyphp-framework-router-fastroute