From 962a1cd649c8508c5ea39df798f44d775f0cacb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B0=D1=82=D0=BE=D0=BB=D0=B8=D0=B9=20=D0=9D?= =?UTF-8?q?=D0=B5=D1=85=D0=B0=D0=B9?= Date: Mon, 18 Apr 2022 05:13:25 +0500 Subject: [PATCH 1/6] update .circleci/config.yml --- .circleci/config.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 04415070..880abdc4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,7 +10,7 @@ jobs: steps: - checkout - run: php -v - - run: composer install --no-interaction --no-suggest --prefer-source + - run: composer install --no-interaction - run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text php72: docker: @@ -18,7 +18,7 @@ jobs: steps: - checkout - run: php -v - - run: composer install --no-interaction --no-suggest --prefer-source + - run: composer install --no-interaction - run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text php73: docker: @@ -26,7 +26,7 @@ jobs: steps: - checkout - run: php -v - - run: composer install --no-interaction --no-suggest --prefer-source + - run: composer install --no-interaction - run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text php74: docker: @@ -34,7 +34,7 @@ jobs: steps: - checkout - run: php -v - - run: composer install --no-interaction --no-suggest --prefer-source + - run: composer install --no-interaction - run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text php80: docker: @@ -42,7 +42,7 @@ jobs: steps: - checkout - run: php -v - - run: composer install --no-interaction --no-suggest --prefer-source + - run: composer install --no-interaction - run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text workflows: version: 2 From b0999f66f86b8423a349d1749d907c46341f09bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B0=D1=82=D0=BE=D0=BB=D0=B8=D0=B9=20=D0=9D?= =?UTF-8?q?=D0=B5=D1=85=D0=B0=D0=B9?= Date: Mon, 18 Apr 2022 05:13:33 +0500 Subject: [PATCH 2/6] update .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index ac89ebde..a6bde413 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ /phpbench.json /phpcs.xml /phpunit.xml +/psalm.xml /vendor/ From 358cd4966c3a369b9c3b51440e8513c1ce6e0693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B0=D1=82=D0=BE=D0=BB=D0=B8=D0=B9=20=D0=9D?= =?UTF-8?q?=D0=B5=D1=85=D0=B0=D0=B9?= Date: Mon, 18 Apr 2022 05:13:39 +0500 Subject: [PATCH 3/6] update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a7253883..f3f7e4ee 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# HTTP router for PHP 7.1+ (incl. PHP 8 with attributes) based on PSR-7 and PSR-15 with support for annotations and OpenAPI (Swagger) Specification +# HTTP router for PHP 7.1+ based on PSR-7 and PSR-15 with support for annotations/attributes and OpenAPI (Swagger) Specification + +**psr router**, **router with annotations**, **router with attributes**, **php router**. [![Build Status](https://circleci.com/gh/sunrise-php/http-router.svg?style=shield)](https://circleci.com/gh/sunrise-php/http-router) [![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) @@ -693,8 +695,6 @@ $router->setEventDispatcher($eventDispatcher); composer test ``` ---- - ## Useful links * https://www.php-fig.org/psr/psr-7/ From da8415391edd7c3018b12e590e6992787cab6334 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B0=D1=82=D0=BE=D0=BB=D0=B8=D0=B9=20=D0=9D?= =?UTF-8?q?=D0=B5=D1=85=D0=B0=D0=B9?= Date: Mon, 18 Apr 2022 05:13:47 +0500 Subject: [PATCH 4/6] update composer.json --- composer.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 2760633c..2b3b0962 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "sunrise/http-router", "homepage": "https://github.com/sunrise-php/http-router", - "description": "Sunrise // HTTP router for PHP 7.1+ (incl. PHP 8 with attributes) based on PSR-7 and PSR-15 with support for annotations and OpenApi Specification", + "description": "Sunrise // HTTP router for PHP 7.1+ based on PSR-7 and PSR-15 with support for annotations/attributes and OpenAPI (Swagger) Specification", "license": "MIT", "keywords": [ "fenric", @@ -22,8 +22,8 @@ "authors": [ { "name": "Anatoly Fenric", - "email": "anatoly@fenric.ru", - "homepage": "https://anatoly.fenric.ru/" + "email": "afenric@gmail.com", + "homepage": "https://github.com/fenric" } ], "require": { @@ -38,7 +38,7 @@ "require-dev": { "phpunit/phpunit": "7.5.20|9.5.0", "sunrise/coding-standard": "1.0.0", - "sunrise/http-factory": "1.1.0", + "sunrise/http-factory": "2.0.0", "doctrine/annotations": "^1.6", "symfony/console": "^4.4", "symfony/event-dispatcher": "^4.4" @@ -64,6 +64,7 @@ "scripts": { "test": [ "phpcs", + "psalm", "XDEBUG_MODE=coverage phpunit --coverage-text --colors=always" ], "build": [ From 0fc4a2a47fc711047cb05e447b24489e271dfc85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B0=D1=82=D0=BE=D0=BB=D0=B8=D0=B9=20=D0=9D?= =?UTF-8?q?=D0=B5=D1=85=D0=B0=D0=B9?= Date: Mon, 18 Apr 2022 05:13:56 +0500 Subject: [PATCH 5/6] update phpunit.xml.dist --- phpunit.xml.dist | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 07bd1fa1..66c8dba8 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,12 +1,15 @@ - + ./src - + ./tests/ From 653adc9045bd6c19c1488bd62c6235da2eebe2e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B0=D1=82=D0=BE=D0=BB=D0=B8=D0=B9=20=D0=9D?= =?UTF-8?q?=D0=B5=D1=85=D0=B0=D0=B9?= Date: Mon, 18 Apr 2022 05:14:04 +0500 Subject: [PATCH 6/6] add psalm.xml.dist --- psalm.xml.dist | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 psalm.xml.dist diff --git a/psalm.xml.dist b/psalm.xml.dist new file mode 100644 index 00000000..3becd9ba --- /dev/null +++ b/psalm.xml.dist @@ -0,0 +1,14 @@ + + + + + + + + +