|
1 | 1 | { |
2 | 2 | "name": "selective/validation", |
3 | | - "description": "Validation error collector and transformer", |
4 | | - "minimum-stability": "stable", |
5 | 3 | "type": "library", |
| 4 | + "description": "Validation error collector and transformer", |
6 | 5 | "keywords": [ |
7 | 6 | "validation", |
8 | 7 | "middleware", |
|
13 | 12 | "license": "MIT", |
14 | 13 | "require": { |
15 | 14 | "php": "^7.2 || ^8.0", |
| 15 | + "ext-json": "*", |
16 | 16 | "psr/http-factory": "^1.0.1", |
17 | | - "psr/http-server-middleware": "^1.0.1", |
18 | | - "ext-json": "*" |
| 17 | + "psr/http-server-middleware": "^1.0.1" |
19 | 18 | }, |
20 | 19 | "require-dev": { |
21 | 20 | "cakephp/validation": "^4.2", |
22 | 21 | "fig/http-message-util": "^1.1", |
23 | 22 | "friendsofphp/php-cs-fixer": "^2.16", |
| 23 | + "nyholm/psr7": "^1.4", |
24 | 24 | "overtrue/phplint": "^1.1", |
25 | 25 | "phpstan/phpstan": "^0.12", |
26 | 26 | "phpunit/phpunit": "^8 || ^9", |
27 | 27 | "relay/relay": "^2.0", |
28 | 28 | "slim/psr7": "^1", |
29 | 29 | "squizlabs/php_codesniffer": "^3.5" |
30 | 30 | }, |
31 | | - "scripts": { |
32 | | - "check": [ |
33 | | - "@lint", |
34 | | - "@cs:check", |
35 | | - "@sniffer:check", |
36 | | - "@phpstan", |
37 | | - "@test:coverage" |
38 | | - ], |
39 | | - "cs:check": "php-cs-fixer fix --dry-run --format=txt --verbose --diff --diff-format=udiff --config=.cs.php", |
40 | | - "cs:fix": "php-cs-fixer fix --config=.cs.php", |
41 | | - "lint": "phplint ./ --exclude=vendor --no-interaction --no-cache", |
42 | | - "phpstan": "phpstan analyse src --level=max -c phpstan.neon --no-progress --ansi", |
43 | | - "sniffer:check": "phpcs --standard=phpcs.xml", |
44 | | - "sniffer:fix": "phpcbf --standard=phpcs.xml", |
45 | | - "test": "phpunit --configuration phpunit.xml --do-not-cache-result", |
46 | | - "test:coverage": "phpunit --configuration phpunit.xml --do-not-cache-result --coverage-clover build/logs/clover.xml --coverage-html build/coverage" |
| 31 | + "config": { |
| 32 | + "sort-packages": true |
47 | 33 | }, |
48 | 34 | "autoload": { |
49 | 35 | "psr-4": { |
|
55 | 41 | "Selective\\Validation\\Test\\": "tests/" |
56 | 42 | } |
57 | 43 | }, |
58 | | - "config": { |
59 | | - "sort-packages": true |
| 44 | + "minimum-stability": "stable", |
| 45 | + "scripts": { |
| 46 | + "cs:check": "php-cs-fixer fix --dry-run --format=txt --verbose --diff --diff-format=udiff --config=.cs.php", |
| 47 | + "cs:fix": "php-cs-fixer fix --config=.cs.php", |
| 48 | + "lint": "phplint ./ --exclude=vendor --no-interaction --no-cache", |
| 49 | + "phpstan": "phpstan analyse src --level=max -c phpstan.neon --no-progress --ansi", |
| 50 | + "sniffer:check": "phpcs --standard=phpcs.xml", |
| 51 | + "sniffer:fix": "phpcbf --standard=phpcs.xml", |
| 52 | + "test": "phpunit --configuration phpunit.xml --do-not-cache-result", |
| 53 | + "test:all": [ |
| 54 | + "@lint", |
| 55 | + "@cs:check", |
| 56 | + "@sniffer:check", |
| 57 | + "@phpstan", |
| 58 | + "@test:coverage" |
| 59 | + ], |
| 60 | + "test:coverage": "php -d xdebug.mode=coverage -r \"require 'vendor/bin/phpunit';\" -- --configuration phpunit.xml --do-not-cache-result --colors=always --coverage-clover build/logs/clover.xml --coverage-html build/coverage" |
60 | 61 | } |
61 | 62 | } |
0 commit comments