Skip to content

Commit cc4dc4f

Browse files
committed
migrate packages from zendframework to laminas and mezzio
1 parent 49971e9 commit cc4dc4f

8 files changed

Lines changed: 80 additions & 50 deletions

File tree

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file, in reverse chronological order by release.
4+
5+
## 2.1.0 - 2020-01-02
6+
7+
### Added
8+
9+
- Nothing.
10+
11+
### Changed
12+
13+
- migrate packages from zendframework to laminas and mezzio
14+
15+
### Deprecated
16+
17+
- Nothing.
18+
19+
### Removed
20+
21+
- Nothing.
22+
23+
### Fixed
24+
25+
- Nothing.
26+

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ Every request with `/site` prefix will be replaced:
2727
```
2828

2929

30-
### Zend Expressive
30+
### Mezzio (formely Zend Expressive)
3131

32-
If you are using [expressive-skeleton](https://github.com/zendframework/zend-expressive-skeleton),
32+
If you are using [mezzio-skeleton](https://github.com/mezzio/mezzio-skeleton),
3333
you can copy `config/los-basepath.global.php.dist` to `config/autoload/los-basepath.global.php`
3434
and modify configuration as your needs.
3535

composer.json

Lines changed: 47 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,49 @@
11
{
2-
"name" : "los/basepath",
3-
"description" : "PHP middleware to remove a path prefix from request uri",
4-
"require" : {
5-
"php" : "^7.1",
6-
"psr/http-message" : "~1.0",
7-
"psr/container": "^1.0",
8-
"psr/http-server-middleware": "^1.0"
9-
},
10-
"require-dev" : {
11-
"phpunit/phpunit" : "^7.0",
12-
"zendframework/zend-diactoros" : "^1.0",
13-
"zendframework/zend-expressive-helpers": "^5.0",
14-
"zendframework/zend-coding-standard": "^1.0",
15-
"squizlabs/php_codesniffer": "^2.7",
16-
"phpstan/phpstan": "^0.9.2"
17-
},
18-
"license" : "MIT",
19-
"autoload-dev" : {
20-
"psr-4" : {
21-
"LosMiddleware\\BasePathTest\\" : "test/"
22-
}
23-
},
24-
"autoload" : {
25-
"psr-4" : {
26-
"LosMiddleware\\BasePath\\" : "src/"
27-
}
28-
},
29-
"type" : "library",
30-
"scripts" : {
31-
"test" : [ "php vendor/phpunit/phpunit/phpunit" ],
32-
"cs-check": "phpcs",
33-
"cs-fix": "phpcbf",
34-
"check": [
35-
"@cs-check",
36-
"@phpstan"
37-
],
38-
"phpstan": "phpstan analyse -l 4 src"
39-
},
40-
"homepage" : "https://github.com/lansoweb/basepath",
41-
"authors" : [ {
42-
"name" : "Leandro Silva",
43-
"homepage" : "http://leandrosilva.info/"
44-
} ]
2+
"name": "los/basepath",
3+
"description": "PHP middleware to remove a path prefix from request uri",
4+
"require": {
5+
"php": "^7.1",
6+
"psr/http-message": "~1.0",
7+
"psr/container": "^1.0",
8+
"psr/http-server-middleware": "^1.0",
9+
"mezzio/mezzio-helpers": "^5.3"
10+
},
11+
"require-dev": {
12+
"phpunit/phpunit": "^7.0",
13+
"squizlabs/php_codesniffer": "^2.7",
14+
"phpstan/phpstan": "^0.9.2",
15+
"laminas/laminas-diactoros": "^2.2",
16+
"laminas/laminas-coding-standard": "^1.0"
17+
},
18+
"license": "MIT",
19+
"autoload-dev": {
20+
"psr-4": {
21+
"LosMiddleware\\BasePathTest\\": "test/"
22+
}
23+
},
24+
"autoload": {
25+
"psr-4": {
26+
"LosMiddleware\\BasePath\\": "src/"
27+
}
28+
},
29+
"type": "library",
30+
"scripts": {
31+
"test": [
32+
"php vendor/phpunit/phpunit/phpunit"
33+
],
34+
"cs-check": "phpcs",
35+
"cs-fix": "phpcbf",
36+
"check": [
37+
"@cs-check",
38+
"@phpstan"
39+
],
40+
"phpstan": "phpstan analyse -l 4 src"
41+
},
42+
"homepage": "https://github.com/lansoweb/basepath",
43+
"authors": [
44+
{
45+
"name": "Leandro Silva",
46+
"homepage": "http://leandrosilva.info/"
47+
}
48+
]
4549
}

phpcs.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<ruleset name="Zend Framework Coding Standard">
3-
<rule ref="./vendor/zendframework/zend-coding-standard/ruleset.xml"/>
3+
<rule ref="./vendor/laminas/laminas-coding-standard/ruleset.xml"/>
44

55
<!-- Paths to check -->
66
<file>config</file>

src/BasePathMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Psr\Http\Message\ServerRequestInterface;
66
use Psr\Http\Server\MiddlewareInterface;
77
use Psr\Http\Server\RequestHandlerInterface;
8-
use Zend\Expressive\Helper\UrlHelper;
8+
use Mezzio\Helper\UrlHelper;
99

1010
final class BasePathMiddleware implements MiddlewareInterface
1111
{

src/BasePathMiddlewareFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace LosMiddleware\BasePath;
44

55
use Psr\Container\ContainerInterface;
6-
use Zend\Expressive\Helper\UrlHelper;
6+
use Mezzio\Helper\UrlHelper;
77

88
class BasePathMiddlewareFactory
99
{

test/BasePathTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use LosMiddleware\BasePath\BasePathMiddleware;
55
use PHPUnit\Framework\TestCase;
6-
use Zend\Diactoros\ServerRequest;
6+
use Laminas\Diactoros\ServerRequest;
77

88
/**
99
* BasePath test case.

test/RequestHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Psr\Http\Message\ResponseInterface;
55
use Psr\Http\Message\ServerRequestInterface;
66
use Psr\Http\Server\RequestHandlerInterface;
7-
use Zend\Diactoros\Response\JsonResponse;
7+
use Laminas\Diactoros\Response\JsonResponse;
88

99
class RequestHandler implements RequestHandlerInterface
1010
{

0 commit comments

Comments
 (0)