Skip to content
Open
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.phpcs-cache
.phpunit.result.cache

vendor/

coverage/
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Install this library using composer:
$ composer require marcguyer/version-middleware
```

Composer will ask if you'd like to inject the ConfigProvider if you're using `zendframework/zend-component-installer`. Answer yes or config it by hand.
Composer will ask if you'd like to inject the ConfigProvider if you're using `laminas/laminas-component-installer`. Answer yes or config it by hand.

## Usage

Expand All @@ -25,7 +25,7 @@ See the [ConfigProvider](src/ConfigProvider.php) for config defaults. You may ov

### Add to pipeline

Wire this middleware into your pipeline before routing. An example using a Zend Expressive pipeline:
Wire this middleware into your pipeline before routing. An example using a Mezzio pipeline:

```php
...
Expand Down
25 changes: 14 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
"php",
"psr-7",
"psr7",
"expressive",
"zf",
"zendframework",
"mezzio",
"laminas",
"middleware",
"versioning",
"api"
Expand All @@ -19,19 +18,20 @@
"rss": "https://github.com/marcguyer/version-middleware/releases.atom"
},
"require": {
"php": "^7.1",
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",
"psr/container": "^1.0",
"psr/http-message": "^1.0",
"psr/http-server-middleware": "^1.0"
},
"require-dev": {
"laminas/laminas-coding-standard": "^2.5",
"laminas/laminas-diactoros": "^2.24.2",
"php-coveralls/php-coveralls": "^2.1",
"phpunit/phpunit": "^7.3",
"phpspec/prophecy": "^1.17",
"phpspec/prophecy-phpunit": "^2.0",
"phpunit/phpunit": "^9.5.11",
"psr/http-server-handler": "^1.0",
"squizlabs/php_codesniffer": "^3.4",
"webimpress/coding-standard": "dev-master@dev",
"zendframework/zend-coding-standard": "dev-develop@dev",
"zendframework/zend-diactoros": "^2.1"
"squizlabs/php_codesniffer": "^3.4"
},
"autoload": {
"psr-4": {
Expand All @@ -44,10 +44,13 @@
}
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"extra": {
"zf": {
"laminas": {
"config-provider": "Psr7Versioning\\ConfigProvider"
}
},
Expand Down
Loading