-
-
Notifications
You must be signed in to change notification settings - Fork 89
/
composer.json
111 lines (111 loc) · 3.1 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"name": "overtrue/phplint",
"description": "`phplint` is a tool that can speed up linting of php files by running several lint processes at once.",
"type": "library",
"keywords": [
"phplint",
"lint",
"static analysis",
"syntax",
"check"
],
"license": "MIT",
"authors": [
{
"name": "overtrue",
"email": "anzhengchao@gmail.com"
},
{
"name": "Laurent Laville",
"homepage": "https://github.com/llaville"
}
],
"require": {
"php": "^8.2",
"ext-dom": "*",
"ext-json": "*",
"ext-mbstring": "*",
"composer-runtime-api": "^2.0",
"symfony/cache": "^7.0",
"symfony/console": "^7.0",
"symfony/event-dispatcher": "^7.0",
"symfony/finder": "^7.0",
"symfony/options-resolver": "^7.0",
"symfony/process": "^7.0",
"symfony/yaml": "^7.0"
},
"require-dev": {
"php-parallel-lint/php-console-highlighter": "^1.0",
"brainmaestro/composer-git-hooks": "^3.0.0",
"jetbrains/phpstorm-stubs": "^2024.1",
"bamarni/composer-bin-plugin": "^1.4"
},
"autoload": {
"psr-4": {
"Overtrue\\PHPLint\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Overtrue\\PHPLint\\Tests\\": "tests/"
}
},
"extra": {
"bamarni-bin": {
"bin-links": true,
"target-directory": "vendor-bin",
"forward-command": true
},
"hooks": {
"pre-commit": [
"composer style:fix",
"composer code:check"
]
},
"branch-alias": {
"dev-main": "9.5.x-dev"
}
},
"scripts": {
"bin": "echo 'bin not installed'",
"post-update-cmd": [
"cghooks update",
"@composer bin all update --ansi"
],
"post-merge": "composer install",
"post-install-cmd": [
"cghooks add --ignore-lock",
"cghooks update",
"@composer bin all install --ansi"
],
"cghooks": "vendor/bin/cghooks",
"style:check": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --using-cache=no --verbose --ansi --diff --dry-run",
"style:fix": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --using-cache=no --verbose --ansi",
"tests:unit": "vendor/bin/phpunit --testsuite=cache,configuration,finder,output",
"tests:e2e": "vendor/bin/phpunit --testsuite=e2e",
"tests:all": "vendor/bin/phpunit",
"lint:syntax": "./bin/phplint --ansi",
"code:check": "vendor/bin/phpstan analyse --configuration phpstan.neon.dist"
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts-descriptions": {
"style:check": "Run style checks (only dry run - no fixing!).",
"style:fix": "Run style checks and fix violations.",
"tests:unit": "Run unit tests on following components: cache, configuration, finder, output",
"tests:e2e": "Run end to end tests",
"tests:all": "Run unit and end to end tests",
"lint:syntax": "Run PHPLint on it own source code",
"code:check": "Run PHPStan code analysis on PHPLint source code"
},
"bin": [
"bin/phplint"
],
"config": {
"sort-packages": true,
"optimize-autoloader": true,
"allow-plugins": {
"bamarni/composer-bin-plugin": true
}
}
}