https://github.com/chubbyphp-legacy/chubbyphp-framework-router-hack-routing
Hack routing implementation for chubbyphp-framework.
https://github.com/chubbyphp-legacy/chubbyphp-framework-router-hack-routing
Last synced: 6 months ago
JSON representation
Hack routing implementation for chubbyphp-framework.
- Host: GitHub
- URL: https://github.com/chubbyphp-legacy/chubbyphp-framework-router-hack-routing
- Owner: chubbyphp-legacy
- License: mit
- Archived: true
- Created: 2021-06-08T16:24:57.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-02T17:57:28.000Z (over 2 years ago)
- Last Synced: 2025-11-27T14:48:57.731Z (7 months ago)
- Language: PHP
- Size: 69.3 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chubbyphp-framework-router-hack-routing
[](https://github.com/chubbyphp/chubbyphp-framework-router-hack-routing/actions?query=workflow%3ACI)
[](https://coveralls.io/github/chubbyphp/chubbyphp-framework-router-hack-routing?branch=master)
[](https://dashboard.stryker-mutator.io/reports/github.com/chubbyphp/chubbyphp-framework-router-hack-routing/master)
[](https://packagist.org/packages/chubbyphp/chubbyphp-framework-router-hack-routing)
[](https://packagist.org/packages/chubbyphp/chubbyphp-framework-router-hack-routing)
[](https://packagist.org/packages/chubbyphp/chubbyphp-framework-router-hack-routing)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-hack-routing)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-hack-routing)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-hack-routing)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-hack-routing)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-hack-routing)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-hack-routing)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-hack-routing)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-hack-routing)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-hack-routing)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-hack-routing)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-router-hack-routing)
## Description
Hack routing implementation for [chubbyphp-framework][1].
DEPRECATED: I suggest to use [chubbyphp-framework-router-fastroute][11].
## Requirements
* php: ^8.0
* [chubbyphp/chubbyphp-framework][1]: ^5.0.3
* [chubbyphp/chubbyphp-http-exception][2]: ^1.0.1
* [azjezz/hack-routing][3]: dev-main@dev
* [psr/http-message][4]: ^1.0.1
## Installation
Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-framework-router-hack-routing][10].
```bash
composer require chubbyphp/chubbyphp-framework-router-hack-routing "^1.0"
```
## Usage
```php
getAttribute('name');
$response = $responseFactory->createResponse();
$response->getBody()->write(sprintf('Hello, %s', $name));
return $response;
}
))
]))),
]);
$app->emit($app->handle((new ServerRequestFactory())->createFromGlobals()));
```
## Copyright
2023 Dominik Zogg
[1]: https://packagist.org/packages/chubbyphp/chubbyphp-framework
[2]: https://packagist.org/packages/chubbyphp/chubbyphp-http-exception
[3]: https://packagist.org/packages/azjezz/hack-routing
[4]: https://packagist.org/packages/psr/http-message
[10]: https://packagist.org/packages/chubbyphp/chubbyphp-framework-router-hack-routing
[11]: https://packagist.org/packages/chubbyphp/chubbyphp-framework-router-hack-fastroute