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 cdbcf88..fc5b4bf 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": "^2.19" + "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" }, "autoload": { "psr-4": {