-
Notifications
You must be signed in to change notification settings - Fork 1
/
composer.json
83 lines (83 loc) · 2.43 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
{
"name": "yournamespace/yourproject",
"description": "Provides yourproject functionality.",
"license": "GPL-2.0-or-later",
"type": "library",
"authors": [
{
"name": "Your Name",
"email": "yourproject@yournamespace.com",
"homepage": "https://yournamespace.com",
"role": "Maintainer"
}
],
"homepage": "https://github.com/yournamespace/yourproject",
"support": {
"issues": "https://github.com/yournamespace/yourproject/issues",
"source": "https://github.com/yournamespace/yourproject"
},
"require": {
"php": ">=8.2",
"symfony/console": "^6.3 || ^7"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.8",
"dealerdirect/phpcodesniffer-composer-installer": "^1",
"drupal/coder": "^8.3",
"ergebnis/composer-normalize": "^2.42",
"mikey179/vfsstream": "^1.6",
"opis/closure": "^4.0",
"phpmd/phpmd": "^2.13",
"phpstan/phpstan": "^2",
"phpunit/phpunit": "^11",
"rector/rector": "^2"
},
"minimum-stability": "stable",
"prefer-stable": true,
"autoload": {
"psr-4": {
"YourNamespace\\App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"YourNamespace\\App\\Tests\\": "tests/phpunit"
},
"classmap": [
"tests/phpunit"
]
},
"bin": [
"php-command",
"php-script"
],
"config": {
"allow-plugins": {
"bamarni/composer-bin-plugin": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"ergebnis/composer-normalize": true
},
"discard-changes": true,
"sort-packages": true
},
"scripts": {
"build": [
"@composer bin box require --dev humbug/box",
"box validate",
"box compile"
],
"lint": [
"cp php-script php-script.php && phpcs; rm php-script.php",
"phpstan",
"phpmd --exclude vendor,vendor-bin,node_modules . text phpmd.xml",
"rector --clear-cache --dry-run"
],
"lint-fix": [
"rector --clear-cache",
"cp php-script php-script.php && phpcbf; rm php-script.php"
],
"reset": "rm -Rf vendor vendor-bin composer.lock",
"test": "phpunit --no-coverage",
"test-coverage": "phpunit"
}
}