-
Notifications
You must be signed in to change notification settings - Fork 4
/
composer.json
64 lines (64 loc) · 1.85 KB
/
composer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"name": "lmc/api-filter",
"type": "library",
"description": "Parser/builder for filters from API query parameters.",
"license": "MIT",
"require": {
"php": "^8.0",
"ext-mbstring": "*",
"beberlei/assert": "^3.0",
"mf/collections-php": "^6.0"
},
"require-dev": {
"doctrine/orm": "^2.7",
"ergebnis/composer-normalize": "^2.5",
"lmc/coding-standard": "^3.0",
"mockery/mockery": "^1.4",
"php-parallel-lint/php-parallel-lint": "^1.2",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.12.23",
"phpstan/phpstan-beberlei-assert": "^0.12.2",
"phpstan/phpstan-mockery": "^0.12.5",
"phpunit/phpunit": "^9.5"
},
"suggest": {
"doctrine/orm": "To allow applying filters directly to QueryBuilder"
},
"config": {
"sort-packages": true
},
"autoload": {
"psr-4": {
"Lmc\\ApiFilter\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Lmc\\ApiFilter\\": "tests/"
}
},
"scripts": {
"all": [
"@lint",
"@analyze",
"@tests"
],
"analyze": [
"@cs",
"@phpstan"
],
"cs": "vendor/bin/ecs check --ansi src/ tests/ ecs.php",
"fix": [
"vendor/bin/ecs check --ansi --clear-cache --fix src/ tests/ ecs.php",
"@composer normalize"
],
"lint": [
"vendor/bin/parallel-lint -j 10 ./src ./tests",
"@composer validate",
"@composer normalize --dry-run"
],
"phpstan": "vendor/bin/phpstan analyze -c phpstan.neon --ansi",
"tests": "vendor/bin/phpunit",
"tests-ci": "mkdir -p reports && php -dxdebug.coverage_enable=1 vendor/bin/phpunit -c phpunit.xml.dist"
}
}