You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The package provides `DataResponseFactory` class that, given a PSR-17 response factory, is able to create data response. In this example we use `nyholm/psr7` package but any PSR-17 response factory would do.
35
+
The package provides `DataResponseFactory` class that, given a PSR-17 response factory, is able to create data response.
23
36
24
37
Data response contains raw data to be processed later.
25
38
26
39
```php
27
-
use Nyholm\Psr7\Factory\Psr17Factory;
28
40
use Yiisoft\DataResponse\DataResponseFactory;
29
41
30
-
$factory = new DataResponseFactory(new Psr17Factory());
The package is tested with [PHPUnit](https://phpunit.de/). To run tests:
@@ -104,10 +125,11 @@ The package is tested with [PHPUnit](https://phpunit.de/). To run tests:
104
125
105
126
### Mutation testing
106
127
107
-
The package tests are checked with [Infection](https://infection.github.io/) mutation framework. To run it:
128
+
The package tests are checked with [Infection](https://infection.github.io/) mutation framework with
129
+
[Infection Static Analysis Plugin](https://github.com/Roave/infection-static-analysis-plugin). To run it:
@@ -118,21 +140,21 @@ The code is statically analyzed with [Psalm](https://psalm.dev/). To run static
118
140
./vendor/bin/psalm
119
141
```
120
142
121
-
### Support the project
143
+
## License
144
+
145
+
The Data response is free software. It is released under the terms of the BSD License.
146
+
Please see [`LICENSE`](./LICENSE.md) for more information.
147
+
148
+
Maintained by [Yii Software](https://www.yiiframework.com/).
0 commit comments