-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcomposer.json
More file actions
88 lines (88 loc) · 3.56 KB
/
Copy pathcomposer.json
File metadata and controls
88 lines (88 loc) · 3.56 KB
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
{
"name": "centralnicgroup-opensource/rtldev-middleware-php-sdk",
"type": "library",
"description": "API connector library for the insanely fast Team Internet Backend APIs (CentralNic Reseller, Internet.bs, Moniker)",
"keywords": [
"SDK",
"api",
"connector",
"centralnic",
"reseller",
"cnic",
"cnr",
"internet.bs",
"moniker",
"domain",
"ssl",
"isp",
"cert",
"dns",
"backorder",
"premium",
"preregistration",
"registration",
"application"
],
"homepage": "https://centralnicgroup-opensource.github.io/rtldev-middleware-php-sdk/",
"readme": "README.md",
"license": "MIT",
"authors": [
{
"name": "Kai Schwarz",
"email": "kai.schwarz@centralnic.com",
"homepage": "https://centralnicgroup.com",
"role": "Chief Development Officer"
}
],
"require": {
"php": ">=8.3.0",
"ext-curl": "*",
"centralnic-reseller/idn-converter": "^1.0"
},
"require-dev": {
"squizlabs/php_codesniffer": "^4.0",
"phpunit/phpunit": "^12.0",
"phpstan/phpstan": "^2.0",
"phpstan/extension-installer": "^1.4",
"rector/rector": "^2.0",
"vimeo/psalm": "^6.0",
"slevomat/coding-standard": "^8.0",
"robiningelbrecht/phpunit-pretty-print": "^1.5"
},
"autoload": {
"psr-4": {
"CNIC\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"CNICTEST\\": "tests/"
}
},
"scripts": {
"docs": "rm -rf build/api-cache docs; test -f tools/doctum.phar || (mkdir -p tools && wget -q --timeout=30 --tries=3 https://doctum.long-term.support/releases/5.6/doctum.phar -O tools/doctum.phar && echo 'bd9fee08e7672ffdafae294cb064c71b3f6582992a5f87ac9ac9b2bcd44a5fce tools/doctum.phar' | sha256sum -c && chmod +x tools/doctum.phar); php tools/doctum.phar update .github/doctum.config.php",
"codefix": "phpcbf --ignore=\"*/vendor/*\" --standard=.github/linters/phpcs.xml -q src tests",
"phpcs": "phpcs --ignore=\"*/vendor/*\" --standard=.github/linters/phpcs.xml -q src tests",
"lint": [
"@phpcs",
"@phpstan",
"@psalm",
"@shellcheck"
],
"test": "XDEBUG_MODE=coverage phpunit --configuration .github/phpunit.xml",
"shellcheck": "find . -name '*.sh' -not -path '*/vendor/*' -not -path '*/node_modules/*' -not -path '*/.husky/_/*' | xargs shellcheck",
"phpstan": "phpstan analyse -c .github/linters/phpstan.neon",
"psalm": "psalm --config=.github/linters/psalm.xml --no-cache --threads=1 --monochrome --show-info=true",
"psalm:colored": "psalm --config=.github/linters/psalm.xml --no-cache --threads=1 --show-info=true",
"rector": "rector process --config .github/linters/rector.php --dry-run",
"rector:fix": "rector process --config .github/linters/rector.php",
"docs:serve": "php -S 0.0.0.0:8000 -t docs",
"generate-uml": "test -f tools/php-class-diagram/vendor/bin/php-class-diagram || (mkdir -p tools/php-class-diagram && composer require --working-dir=tools/php-class-diagram smeghead/php-class-diagram:^1.5); test -f tools/plantuml.jar || (mkdir -p tools && wget -q --timeout=30 --tries=3 https://github.com/plantuml/plantuml/releases/download/v1.2026.6/plantuml-1.2026.6.jar -O tools/plantuml.jar && echo '89948f14c93756c7a3fb7b69078ff37e8489fd79dd430c582b931e2f65358690 tools/plantuml.jar' | sha256sum -c); tools/php-class-diagram/vendor/bin/php-class-diagram --jig-diagram src/ > ./docs/uml.puml; java -jar tools/plantuml.jar ./docs/uml.puml -o uml_diagram"
},
"config": {
"allow-plugins": {
"phpstan/extension-installer": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}