-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcomposer.json
49 lines (49 loc) · 1.38 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
{
"name": "mducharme/slim4-boilerplate",
"description": "Charcoal Slim4 Boilerplate",
"type": "project",
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=7.4",
"charcoal/charcoal": "dev-feature/slim4",
"mustache/mustache": "^2.14",
"zeuxisoo/slim-whoops": "^0.7.3",
"slim/http": "^1.3"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.4",
"phpstan/phpstan": "^0.12.10",
"phpunit/phpunit": "^8.2"
},
"autoload": {
"psr-4": {
"App\\": "src/App"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/App/"
}
},
"scripts": {
"test": [
"@tests"
],
"tests": [
"@phplint",
"@phpcs",
"@phpunit",
"@phpstan"
],
"phplint": "find src tests -type f -name '*.php' -print0 | xargs -0 -n1 -P8 php -l | grep -v '^No syntax errors detected'; test $? -eq 1",
"phpcs": "php vendor/bin/phpcs -ps --colors src/ tests/",
"phpcbf": "php vendor/bin/phpcbf -ps --colors src/ tests/",
"phpunit": "php vendor/bin/phpunit --coverage-text",
"phpstan": "php vendor/bin/phpstan analyze -n -l5 src/",
"start": "php -S localhost:8989 -t www"
},
"config": {
"process-timeout": 0
}
}