File tree Expand file tree Collapse file tree 6 files changed +30
-22
lines changed
resources/definitions/controllers Expand file tree Collapse file tree 6 files changed +30
-22
lines changed Original file line number Diff line number Diff line change 1- # Very soon...
1+ ## HTTP Router
2+
3+ ### A flexible HTTP router for PHP 8.1+ based on PSR-7 and PSR-15 with built-in Swagger support.
4+
5+ [ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/sunrise-php/http-router/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/sunrise-php/http-router/?branch=master )
6+ [ ![ Code Coverage] ( https://scrutinizer-ci.com/g/sunrise-php/http-router/badges/coverage.png?b=master )] ( https://scrutinizer-ci.com/g/sunrise-php/http-router/?branch=master )
7+ [ ![ Total Downloads] ( https://poser.pugx.org/sunrise/http-router/downloads?format=flat )] ( https://packagist.org/packages/sunrise/http-router )
8+
9+ ## Installation
10+
11+ ``` bash
12+ composer require sunrise/http-router
13+ ```
Original file line number Diff line number Diff line change 11{
22 "name" : " sunrise/http-router" ,
33 "homepage" : " https://github.com/sunrise-php/http-router" ,
4- "description" : " HTTP Router for PHP 8.1+ based on PSR-7 and PSR-15 with built-in Swagger support." ,
4+ "description" : " A flexible HTTP router for PHP 8.1+ based on PSR-7 and PSR-15 with built-in Swagger support." ,
55 "license" : " MIT" ,
66 "keywords" : [
77 " fenric" ,
3131 "psr/http-server-middleware" : " ^1.0" ,
3232 "psr/log" : " ^1.0 || ^2.0 || ^3.0" ,
3333 "psr/simple-cache" : " ^1.0 || ^2.0 || ^3.0" ,
34- "sunrise/coder" : " ^1.0@RC"
34+ "sunrise/coder" : " ^1.0@RC" ,
35+ "sunrise/hydrator" : " ^3.15"
3536 },
3637 "require-dev" : {
3738 "php-di/php-di" : " ^7.0" ,
4041 "ramsey/uuid" : " ^4.7" ,
4142 "squizlabs/php_codesniffer" : " ^3.11" ,
4243 "sunrise/http-message" : " ^3.4" ,
43- "sunrise/hydrator" : " ^3.15" ,
4444 "symfony/console" : " ^6.4" ,
4545 "symfony/uid" : " ^6.4" ,
4646 "symfony/validator" : " ^6.4" ,
File renamed without changes.
Original file line number Diff line number Diff line change 44
55$ config = [
66 'includes ' => [
7- __DIR__ . '/phpstan.neon.dist ' ,
7+ __DIR__ . '/phpstan.neon ' ,
88 ],
99 'parameters ' => [
1010 'phpVersion ' => PHP_VERSION_ID ,
Original file line number Diff line number Diff line change 1313use function DI \get ;
1414
1515return [
16- OpenApiController::class => create ()
17- ->constructor (
18- openApiConfiguration: get (OpenApiConfiguration::class),
19- openApiDocumentManager: get (OpenApiDocumentManagerInterface::class),
20- responseFactory: get (ResponseFactoryInterface::class),
21- streamFactory: get (StreamFactoryInterface::class),
22- ),
23-
2416 'router.descriptor_loader.resources ' => add ([
25- OpenApiController::class,
17+ create (OpenApiController::class)
18+ ->constructor (
19+ openApiConfiguration: get (OpenApiConfiguration::class),
20+ openApiDocumentManager: get (OpenApiDocumentManagerInterface::class),
21+ responseFactory: get (ResponseFactoryInterface::class),
22+ streamFactory: get (StreamFactoryInterface::class),
23+ ),
2624 ]),
2725];
Original file line number Diff line number Diff line change 1212use function DI \get ;
1313
1414return [
15- SwaggerController::class => create ()
16- ->constructor (
17- swaggerConfiguration: get (SwaggerConfiguration::class),
18- responseFactory: get (ResponseFactoryInterface::class),
19- streamFactory: get (StreamFactoryInterface::class),
20- ),
21-
2215 'router.descriptor_loader.resources ' => add ([
23- SwaggerController::class,
16+ create (SwaggerController::class)
17+ ->constructor (
18+ swaggerConfiguration: get (SwaggerConfiguration::class),
19+ responseFactory: get (ResponseFactoryInterface::class),
20+ streamFactory: get (StreamFactoryInterface::class),
21+ ),
2422 ]),
2523];
You can’t perform that action at this time.
0 commit comments