-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
93 lines (93 loc) · 2.16 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"name": "lendable/json-serializer",
"description": "JSON serializer/deserializer with an OOP interface",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Lendable Ltd",
"email": "[email protected]"
}
],
"autoload": {
"psr-4": {
"Lendable\\Json\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\Lendable\\Json\\Unit\\": "tests/unit/"
}
},
"require": {
"php": ">=8.2,<9"
},
"require-dev": {
"infection/infection": "^0.29.6",
"php-cs-fixer/shim": "^3.61.1",
"php-parallel-lint/php-parallel-lint": "^1.4.0",
"phpstan/phpstan": "^1.11.9",
"phpstan/phpstan-deprecation-rules": "^1.2.0",
"phpstan/phpstan-phpunit": "^1.4.0",
"phpstan/phpstan-strict-rules": "^1.6.0",
"phpunit/phpunit": "^11.3.0",
"rector/rector": "^1.2.2"
},
"config": {
"bin-dir": "bin",
"sort-packages": true,
"platform": {
"php": "8.2"
},
"allow-plugins": {
"infection/extension-installer": true
}
},
"prefer-stable": true,
"scripts": {
"code-style:fix": [
"PHP_CS_FIXER_FUTURE_MODE=1 php-cs-fixer fix --diff --ansi --using-cache=no"
],
"code-style:check": [
"PHP_CS_FIXER_FUTURE_MODE=1 php-cs-fixer fix --dry-run --diff --ansi --using-cache=no"
],
"lint:php": [
"parallel-lint src",
"parallel-lint tests"
],
"lint": [
"@lint:php"
],
"phpstan": [
"phpstan analyse --memory-limit=-1 src/ tests/ rector.php --ansi --no-progress"
],
"rector:check": [
"rector --dry-run --ansi --no-progress-bar"
],
"rector:fix": [
"rector --ansi --no-progress-bar"
],
"static-analysis": [
"@composer validate",
"@lint",
"@phpstan",
"@rector:check"
],
"phpunit:unit": [
"phpunit --colors --testsuite=unit --do-not-cache-result"
],
"infection": [
"./bin/infection --threads=8 --only-covering-test-cases --min-msi=99 --show-mutations"
],
"tests:unit": [
"@phpunit:unit",
"@infection"
],
"ci": [
"@composer audit",
"@static-analysis",
"@code-style:check",
"@tests:unit"
]
}
}