Repository navigation
Expand file tree
/
Copy pathcomposer.json
More file actions
119 lines (119 loc) · 5.44 KB
/
Copy pathcomposer.json
File metadata and controls
119 lines (119 loc) · 5.44 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
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
{
"name": "centralnic-reseller/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": "*",
"ext-intl": "*",
"centralnic-reseller/idn-converter": "^3.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/api; 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": [
"@prettier",
"@phpcs",
"@phpstan",
"@psalm",
"@shellcheck"
],
"prettier": "node_modules/.bin/prettier --check .",
"prettier:fix": "node_modules/.bin/prettier --write .",
"test": "XDEBUG_MODE=coverage phpunit --configuration .github/phpunit.xml",
"test:record": "RTLDEV_MW_RECORD=1 XDEBUG_MODE=off phpunit --no-coverage --configuration .github/phpunit.xml",
"shellcheck": "git ls-files -z '*.sh' .husky/pre-commit | xargs -0 --no-run-if-empty 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/api",
"demo:cnr": "@php examples/app_CNR.php",
"demo:ibs": "@php examples/app_IBS.php",
"demo:moniker": "@php examples/app_MONIKER.php",
"demo:datetime": "@php examples/datetime.php",
"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); mkdir -p ./docs/api; tools/php-class-diagram/vendor/bin/php-class-diagram --jig-diagram src/ > ./docs/api/uml.puml; java -jar tools/plantuml.jar ./docs/api/uml.puml -o uml_diagram"
},
"scripts-descriptions": {
"docs": "Generate API documentation with Doctum",
"codefix": "Auto-fix coding standard violations (phpcbf)",
"phpcs": "Check coding standards (PSR-12) with PHP_CodeSniffer",
"lint": "Run all linters (prettier, phpcs, phpstan, psalm, shellcheck)",
"prettier": "Check non-PHP file formatting (Markdown, JSON, YAML) with Prettier",
"prettier:fix": "Auto-fix non-PHP file formatting with Prettier",
"test": "Run the PHPUnit test suite with coverage",
"test:record": "Re-record the request() cassettes against OT&E (needs RTLDEV_MW_CI_* credentials); replay is the default in composer test",
"shellcheck": "Lint tracked shell scripts, plus the .husky/pre-commit hook, with shellcheck",
"phpstan": "Run PHPStan static analysis (level 9)",
"psalm": "Run Psalm static analysis (monochrome)",
"psalm:colored": "Run Psalm static analysis (colored output)",
"rector": "Detect modernization opportunities (Rector dry-run)",
"rector:fix": "Apply Rector modernization fixes",
"docs:serve": "Serve the generated API docs locally on port 8000",
"demo:cnr": "Run the CentralNic Reseller (CNR) demo application",
"demo:ibs": "Run the Internet.bs (IBS) demo application",
"demo:moniker": "Run the Moniker demo application",
"demo:datetime": "Run the ApiDateTime parser demo (no credentials or network needed)",
"generate-uml": "Generate a UML class diagram (php-class-diagram + PlantUML)"
},
"config": {
"allow-plugins": {
"phpstan/extension-installer": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}