-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
executable file
·60 lines (60 loc) · 1.56 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
{
"autoload": {
"psr-4": {
"PetrKnap\\Optional\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"PetrKnap\\Optional\\": "tests"
}
},
"config": {
"allow-plugins": false,
"sort-packages": true
},
"description": "Optional (like in Java Platform SE 8 but in PHP)",
"funding": [
{
"type": "other",
"url": "https://petrknap.github.io/donate.html"
}
],
"homepage": "https://github.com/petrknap/php-optional",
"keywords": [
"optional"
],
"license": "LGPL-3.0-or-later",
"name": "petrknap/optional",
"require": {
"php": ">=8.1"
},
"require-dev": {
"nunomaduro/phpinsights": "^2.11",
"petrknap/shorts": "^3.0",
"phpstan/phpstan": "^1.12",
"phpunit/phpunit": "^10.5",
"squizlabs/php_codesniffer": "^3.7"
},
"scripts": {
"test": "phpunit --colors=always --testdox tests",
"check-requirements": [
"composer update \"petrknap/*\"",
"composer outdated \"petrknap/*\" --major-only --strict --ansi --no-interaction"
],
"check-implementation": [
"phpcs --colors --standard=PSR12 --exclude=Generic.Files.LineLength src tests",
"phpstan analyse --level max src --ansi --no-interaction",
"phpstan analyse --level 5 tests --ansi --no-interaction",
"phpinsights analyse src tests --ansi --no-interaction --format=github-action | sed -e \"s#::error file=$PWD/#::notice file=#g\""
],
"test-implementation": [
"@test"
],
"ci-script": [
"@check-implementation",
"@check-requirements",
"@test-implementation"
]
}
}