forked from nunomaduro/phpinsights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
134 lines (134 loc) · 4.39 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
"name": "nunomaduro/phpinsights",
"description": "Instant PHP quality checks from your console.",
"keywords": [
"php",
"insights",
"console",
"quality",
"source",
"code"
],
"license": "MIT",
"authors": [
{
"name": "Nuno Maduro",
"email": "[email protected]"
}
],
"require": {
"php": "^7.4|^8.0",
"ext-iconv": "*",
"ext-json": "*",
"ext-mbstring": "*",
"ext-tokenizer": "*",
"cmgmyr/phploc": "dev-main",
"composer/semver": "^3.4",
"friendsofphp/php-cs-fixer": "^3.40.0",
"justinrainbow/json-schema": "^5.2.13",
"league/container": "^3.2|^4.2",
"nikic/php-parser": "^4.19|^5.0",
"php-parallel-lint/php-parallel-lint": "^1.3.2",
"psr/container": "^1.0|^2.0.2",
"psr/simple-cache": "^1.0|^2.0|^3.0",
"sebastian/diff": "^4.0|^5.0.3|^6.0.1",
"slevomat/coding-standard": "^8.14.1",
"squizlabs/php_codesniffer": "^3.7.2",
"symfony/cache": "^5.4|^6.0|^7.0",
"symfony/console": "^5.4|^6.4|^7.0",
"symfony/finder": "^5.4|^6.0|^7.0",
"symfony/http-client": "^5.4|^6.0|^7.0",
"symfony/process": "^5.4|^6.4|^7.0"
},
"require-dev": {
"ergebnis/phpstan-rules": "^2.2",
"illuminate/console": "^10.0|^11.0",
"illuminate/support": "^10.0|^11.0",
"mockery/mockery": "^1.6.6",
"phpstan/phpstan-strict-rules": "1.5.2",
"phpunit/phpunit": "^10|^11.0.7",
"rector/rector": "1.0.3",
"symfony/var-dumper": "^5.4|^6.0|^7.0",
"thecodingmachine/phpstan-strict-rules": "1.0.0"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/mwikberg-virta/phploc",
"no-api": true,
"name": "phploc"
}
],
"suggest": {
"ext-simplexml": "It is needed for the checkstyle formatter"
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"NunoMaduro\\PhpInsights\\": "src"
}
},
"config": {
"sort-packages": true,
"preferred-install": "dist",
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"extra": {
"laravel": {
"providers": [
"NunoMaduro\\PhpInsights\\Application\\Adapters\\Laravel\\InsightsServiceProvider"
]
}
},
"bin": [
"bin/phpinsights"
],
"scripts": {
"website:copy-changelog": "@php -r \"copy('CHANGELOG.md', 'docs/changelog.md');\"",
"website:copy-logo": "@php -r \"(is_dir('docs/.vuepress/public') || mkdir('docs/.vuepress/public')) && copy('art/logo_mixed.gif', 'docs/.vuepress/public/logo.gif') && copy('art/heart.svg', 'docs/.vuepress/public/heart.svg') && copy('art/heart.png', 'docs/.vuepress/public/heart.png');\"",
"csfixer:test": "php-cs-fixer fix -v",
"phpstan:test": "phpstan analyse --ansi",
"phpunit:test": "phpunit --colors=always",
"rector:test": "rector process --ansi",
"insights": "bin/phpinsights analyse --ansi -v --no-interaction",
"test": [
"@phpstan:test",
"@csfixer:test --dry-run",
"@rector:test --dry-run",
"@phpunit:test",
"@insights"
],
"fix": [
"@csfixer:test",
"@insights --fix --quiet",
"@rector:test"
],
"post-install-cmd": [
"@website:copy-changelog",
"@website:copy-logo"
],
"post-update-cmd": [
"@website:copy-changelog",
"@website:copy-logo"
]
},
"scripts-descriptions": {
"website:copy-changelog": "Copy package changelog to the website",
"website:copy-logo": "Copy logo from art directory to the website",
"rector:test": "Run the rector tests.",
"csfixer:test": "Run the PhpCsFixer tests.",
"phpstan:test": "Run the phpstan tests.",
"phpunit:test": "Run the phpunit tests.",
"insights": "Run the phpinsights tests",
"test": "Run all tests including phpstan, phpunit and phpcs.",
"fix": "Run ecs, phpinsights and rector fixers."
}
}