Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
5 changes: 3 additions & 2 deletions .mddoc.xml.dist
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<mddoc>

<docpage target="README.md" autoloader="psr4" autoloader-root="src" autoloader-root-namespace="Corpus\Router">
<docpage target="README.md">
<autoloader type="psr4" root="src" namespace="Corpus\Router"/>

<section title="Corpus Router">
<badge-poser type="version"/>
<badge-poser type="license"/>
<badge-github-action name="CorpusPHP/Router" workflow="CI"/>
<badge-github-action name="CorpusPHP/Router" workflow-file="ci.yml"/>
<text>A Simple Collection of Routers</text>
<section title="Requirements">
<composer-requires/>
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down