-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathcomposer.json
165 lines (165 loc) · 7.31 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{
"name": "idoit/apiclient",
"description": "Easy-to-use, but feature-rich client library for i-doit's JSON-RPC API",
"type": "library",
"keywords": ["i-doit", "cmdb", "it documentation", "api", "json-rpc"],
"homepage": "https://github.com/i-doit/api-client-php",
"license": "AGPL-3.0+",
"authors": [
{
"name": "Benjamin Heisig",
"email": "[email protected]",
"homepage": "https://benjamin.heisig.name/",
"role": "Developer"
},
{
"name": "Leonard Fischer",
"email": "[email protected]",
"homepage": "https://www.i-doit.com/",
"role": "Developer"
}
],
"support": {
"issues": "https://github.com/i-doit/api-client-php/issues",
"source": "https://github.com/i-doit/api-client-php"
},
"require": {
"php": "^8.0 || ^8.1 || ^8.2 || ^8.3",
"ext-curl": "*",
"ext-date": "*",
"ext-json": "*",
"ext-openssl": "*",
"ext-spl": "*",
"ext-zlib": "*"
},
"require-dev": {
"ext-dom": "*",
"ext-xml": "*",
"brianium/paratest": "^6.11",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
"j13k/yaml-lint": "^1.1",
"phan/phan": "^5.4",
"php-parallel-lint/php-parallel-lint": "^1.3",
"phpcompatibility/php-compatibility": "^9.3",
"phploc/phploc": "^7.0",
"phpmd/phpmd": "^2.15",
"phpstan/phpstan": "^2.0",
"phpunit/phpunit": "^9.6",
"povils/phpmnd": "^2.5",
"psalm/phar": "^5.26",
"roave/security-advisories": "dev-master",
"sclable/xml-lint": "^0.8.0",
"sebastian/phpcpd": "^6.0",
"seld/jsonlint": "^1.11",
"squizlabs/php_codesniffer": "^3.11",
"symfony/dotenv": "^5.4"
},
"suggest": {
"ext-xdebug": "Needed for code coverage with phpunit"
},
"autoload": {
"psr-4": {
"Idoit\\APIClient\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Idoit\\APIClient\\": "tests/Idoit/APIClient/"
}
},
"config": {
"platform": {
"php": "8.0.0"
},
"process-timeout": 86400,
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"ci": [
"@composer system-check",
"@composer lint",
"@composer find-forbidden",
"@composer phpcompatibility",
"@composer phpcpd",
"@composer phpcs",
"@composer phpmnd",
"@composer phpstan"
],
"ci-phpunit": "./vendor/bin/phpunit --configuration ./phpunit.xml --testdox --no-interaction --exclude-group unreleased,addon,open --log-junit ./phpunit_log.xml --no-coverage",
"ci-phpunit-parallel": "./vendor/bin/paratest --phpunit ./vendor/bin/phpunit --configuration ./phpunit.xml --exclude-group unreleased,addon,open --log-junit=./phpunit_parallel_log.xml ./tests/",
"ci-phpunit-unreleased": "./vendor/bin/phpunit --configuration ./phpunit.xml --testdox --no-interaction --group unreleased --log-junit ./phpunit_unreleased_log.xml --no-coverage",
"find-forbidden": [
"! grep -rEn \"(echo|var_dump|die|exit)\" src/* tests/*"
],
"gitstats": "gitstats -c project_name=`composer config name` . gitstats",
"gource": "gource -1280x720 --seconds-per-day 3 --auto-skip-seconds 1 --title `composer config name`",
"lint": [
"@composer lint-php",
"@composer lint-json",
"@composer lint-xml",
"@composer lint-yaml"
],
"lint-json": "./vendor/bin/jsonlint composer.json",
"lint-php": "./vendor/bin/parallel-lint --exclude vendor --blame .",
"lint-xml": "./vendor/bin/xmllint --recursive --exclude=vendor --skip-xsd --verbose .",
"lint-yaml": "git ls-files | grep -E '\\.(yml|yaml|.yml.dist)$' | xargs ./vendor/bin/yaml-lint",
"outdated-packages": "@composer outdated --strict --direct",
"phan": "./vendor/bin/phan",
"phpcompatibility": "./vendor/bin/phpcs -p --colors --extensions=php --standard=PHPCompatibility --runtime-set testVersion 7.4- src/ tests/",
"phpcpd": "./vendor/bin/phpcpd src/",
"phpcs": "./vendor/bin/phpcs --extensions=php --standard=PSR1,PSR2 --exclude=PSR2.Classes.ClassDeclaration,Squiz.Functions.MultiLineFunctionDeclaration src/ tests/",
"phploc": "./vendor/bin/phploc --exclude=vendor --exclude=docs --exclude=build .",
"phpmd": "./vendor/bin/phpmd src text cleancode,codesize,controversial,design,naming,unusedcode",
"phpmnd": "./vendor/bin/phpmnd src/ --non-zero-exit-on-violation",
"phpstan": "./vendor/bin/phpstan analyze -c phpstan.neon",
"phpunit": "./vendor/bin/phpunit --configuration ./phpunit.xml --testdox --no-interaction --exclude-group unreleased,addon,open",
"phpunit-addon": "./vendor/bin/phpunit --configuration ./phpunit.xml --testdox --no-interaction --group addon",
"phpunit-parallel": "./vendor/bin/paratest -p8 --phpunit ./vendor/bin/phpunit --configuration ./phpunit.xml --exclude-group unreleased,addon,open ./tests/",
"phpunit-unreleased": "./vendor/bin/phpunit --configuration ./phpunit.xml --testdox --no-interaction --group unreleased",
"system-check": [
"php --version",
"php -m",
"php --info | grep -E \"(max_execution_time|memory_limit)\"",
"@composer --version",
"@composer validate",
"@composer diagnose || echo \"Ignore warnings\"",
"@composer check-platform-reqs",
"@composer outdated --direct",
"@composer config extra.version"
]
},
"scripts-descriptions": {
"ci": "Perform continuous integration tasks",
"ci-phpunit": "CI: Perform unit tests",
"ci-phpunit-parallel": "CI: Perform unit tests in parallel",
"ci-phpunit-unreleased": "CI: Perform unit tests for unreleased features",
"find-forbidden": "Find forbidden words in source code",
"gitstats": "Create Git statistics",
"gource": "Visualize Git history",
"lint": "Perform all lint checks",
"lint-php": "Check syntax of PHP files",
"lint-json": "Check syntax of JSON files",
"lint-xml": "Check syntax of XML files",
"lint-yaml": "Check syntax of YAML files",
"outdated-packages": "Report outdated composer packages",
"phan": "Perform static code analysis with phan",
"phpcompatibility": "Run PHP compatibility checks",
"phpcpd": "Detect copy/paste in source code",
"phpcs": "Detect violations of defined coding standards",
"phploc": "Print source code statistics",
"phpstan": "Analyze source code",
"phpmnd": "Detect magic numbers in source code",
"phpmd": "Detect mess in source code",
"phpunit": "Perform unit tests",
"phpunit-addon": "Perform unit tests for add-on related API requests",
"phpunit-parallel": "Perform unit tests in parallel",
"phpunit-unreleased": "Perform unit tests for unreleased features",
"system-check": "Run some system checks"
},
"extra": {
"version": "0.11-dev"
}
}