-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
53 lines (53 loc) · 1.73 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
{
"name" : "coco-project/macroable",
"description" : "Provide a trait that dynamically injects a specified method or closure into a specified object during runtime execution.",
"type" : "library",
"license" : "MIT",
"require" : {
"php" : ">=8.0"
},
"autoload" : {
"psr-4" : {
"Coco\\macroable\\" : "src/",
"Coco\\examples\\" : "examples/"
}
},
"require-dev" : {
"phpstan/phpstan" : "^1.10",
"phpunit/phpunit" : "^9.6",
"squizlabs/php_codesniffer" : "^3.8"
},
"autoload-dev" : {
"psr-4" : {
"Coco\\Tests\\Unit\\" : "tests/Unit"
}
},
"scripts" : {
"test" : "./vendor/phpunit/phpunit/phpunit ",
"analyse" : "./vendor/bin/phpstan analyse -vvv --error-format=table > .phpstan.txt",
"check-style" : "./vendor/squizlabs/php_codesniffer/bin/phpcs -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests",
"fix-style" : "./vendor/squizlabs/php_codesniffer/bin/phpcbf -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests",
"run-test" : [
"@test",
"@fix-style",
"@analyse"
]
},
"scripts-descriptions" : {
"test" : "Run unit tests",
"check-style" : "Check code formatting with phpcs",
"fix-style" : "Fix code formatting with phpcbf",
"analyse" : "Run code analysis with phpstan",
"run-test" : "Execute test, fix-style, and analyse"
},
"config" : {
"sort-packages" : true,
"allow-plugins" : {
"symfony/flex" : true,
"phpstan/extension-installer" : true
},
"platform" : {
"php" : "8.0"
}
}
}