From d833249becafecb95f77d7b7fe77a62a930569bd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 2 May 2026 00:57:19 +0000 Subject: [PATCH 1/3] Update friendsofphp/php-cs-fixer requirement from ^2.19 to ^3.95 Updates the requirements on [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) to permit the latest version. - [Release notes](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases) - [Changelog](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/CHANGELOG.md) - [Commits](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v2.19.0...v3.95.1) --- updated-dependencies: - dependency-name: friendsofphp/php-cs-fixer dependency-version: 3.95.1 dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index cdbcf88..301f16e 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "phpunit/phpunit": "~7.5 | ~9.5 | ~10.5", "squizlabs/php_codesniffer": "^3.7", "corpus/coding-standard": "^0.6.0", - "friendsofphp/php-cs-fixer": "^2.19" + "friendsofphp/php-cs-fixer": "^3.95" }, "autoload": { "psr-4": { From ad813f2692ec29e09a2ded89bd3090da85a69b1b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 4 May 2026 11:41:14 +0000 Subject: [PATCH 2/3] Raise minimum PHP to 8.1 in CI and composer, update mddoc config and README Agent-Logs-Url: https://github.com/CorpusPHP/Router/sessions/62a3a70d-6ba8-4aaa-bfc8-4a0adad87425 Co-authored-by: donatj <133747+donatj@users.noreply.github.com> --- .github/workflows/ci.yml | 2 +- .mddoc.xml.dist | 5 +++-- README.md | 6 ++++-- composer.json | 5 +++-- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 405987f..895a2ac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: operating-system: [ubuntu-latest] - php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5'] + php-versions: ['8.1', '8.2', '8.3', '8.4', '8.5'] runs-on: ${{ matrix.operating-system }} diff --git a/.mddoc.xml.dist b/.mddoc.xml.dist index dc83e12..c8fc383 100644 --- a/.mddoc.xml.dist +++ b/.mddoc.xml.dist @@ -1,11 +1,12 @@ - + +
- + A Simple Collection of Routers
diff --git a/README.md b/README.md index dca03db..c5430c0 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,14 @@ [![Latest Stable Version](https://poser.pugx.org/corpus/router/version)](https://packagist.org/packages/corpus/router) [![License](https://poser.pugx.org/corpus/router/license)](https://packagist.org/packages/corpus/router) -[![CI](https://github.com/CorpusPHP/Router/workflows/CI/badge.svg?)](https://github.com/CorpusPHP/Router/actions?query=workflow%3ACI) +[![ci.yml](https://github.com/CorpusPHP/Router/actions/workflows/ci.yml/badge.svg?)](https://github.com/CorpusPHP/Router/actions/workflows/ci.yml) A Simple Collection of Routers ## Requirements -- **php**: >=7.1 +- **php**: >=8.1 ## Installing @@ -178,6 +178,8 @@ Generate a URL for the given controller, action and options - ***object*** | ***string*** `$controller` - Instance or Relative 'admin\index' or absolute '\Controllers\www\admin\index' +**Throws**: `\Corpus\Router\Exceptions\NonRoutableException` + --- #### Method: HttpRouter->getNamespace diff --git a/composer.json b/composer.json index 301f16e..4e7db07 100644 --- a/composer.json +++ b/composer.json @@ -9,13 +9,14 @@ } ], "require": { - "php": ">=7.1" + "php": ">=8.1" }, "require-dev": { "phpunit/phpunit": "~7.5 | ~9.5 | ~10.5", "squizlabs/php_codesniffer": "^3.7", "corpus/coding-standard": "^0.6.0", - "friendsofphp/php-cs-fixer": "^3.95" + "friendsofphp/php-cs-fixer": "^3.95", + "donatj/mddoc": "^0.8.0" }, "autoload": { "psr-4": { From 6b07377b27e2ec47930d1fc79af65fc78337123f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 4 May 2026 11:48:40 +0000 Subject: [PATCH 3/3] Bump dev dependencies to versions compatible with PHP 8.1 minimum Agent-Logs-Url: https://github.com/CorpusPHP/Router/sessions/8bff9fe1-aad9-4a8b-8ce3-552fbbf65dac Co-authored-by: donatj <133747+donatj@users.noreply.github.com> --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 4e7db07..fc5b4bf 100644 --- a/composer.json +++ b/composer.json @@ -12,9 +12,9 @@ "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "~7.5 | ~9.5 | ~10.5", - "squizlabs/php_codesniffer": "^3.7", - "corpus/coding-standard": "^0.6.0", + "phpunit/phpunit": "^10.5", + "squizlabs/php_codesniffer": "^4.0", + "corpus/coding-standard": "^0.10.0", "friendsofphp/php-cs-fixer": "^3.95", "donatj/mddoc": "^0.8.0" },