-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
140 lines (140 loc) · 5.45 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
{
"name": "cyclonedx/cyclonedx-library",
"description": "Work with CycloneDX documents.",
"license": "Apache-2.0",
"type": "library",
"keywords": [
"OWASP",
"CycloneDX",
"models",
"normalizer",
"serializer",
"validator",
"bill-of-materials",
"BOM",
"software-bill-of-materials",
"SBOM",
"SaaSBOM",
"HBOM",
"OBOM",
"VDR",
"VEX",
"package-url",
"PURL",
"SPDX"
],
"authors": [
{
"name": "Jan Kowalleck",
"email": "[email protected]",
"homepage": "https://github.com/jkowalleck"
}
],
"homepage": "https://github.com/CycloneDX/cyclonedx-php-library/#readme",
"support": {
"issues": "https://github.com/CycloneDX/cyclonedx-php-library/issues",
"source": "https://github.com/CycloneDX/cyclonedx-php-library/",
"docs": "https://cyclonedx-php-library.readthedocs.io"
},
"funding": [
{
"type": "other",
"url": "https://owasp.org/donate/?reponame=www-project-cyclonedx&title=OWASP+CycloneDX"
}
],
"require": {
"php": "^8.1",
"ext-dom": "*",
"ext-json": "*",
"ext-libxml": "*",
"composer/spdx-licenses": "^1.5",
"opis/json-schema": "^2.0",
"package-url/packageurl-php": "^1.0"
},
"require-dev": {
"ext-simplexml": "*",
"roave/security-advisories": "dev-latest"
},
"prefer-stable": true,
"autoload": {
"psr-4": {
"CycloneDX\\Core\\": "src/Core/"
}
},
"autoload-dev": {
"psr-4": {
"CycloneDX\\Tests\\": "tests/"
}
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true,
"icanhazstring/composer-unused": true
},
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "3.x-dev"
},
"composer-normalize": {
"indent-size": 4,
"indent-style": "space"
}
},
"scripts": {
"clean": [
"rm -rf reports",
"@php tools/psalm/vendor/vimeo/psalm/psalm --clear-cache",
"@php tools/psalm/vendor/vimeo/psalm/psalm --clear-global-cache",
"rm -rf .*.cache"
],
"cs-fix": "@php tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --diff",
"dev-setup": [
"@composer -d tools/composer-normalize update",
"@composer -d tools/composer-require-checker update",
"@composer -d tools/composer-unused update",
"@composer -d tools/php-cs-fixer update",
"@composer -d tools/phpmd update",
"@composer -d tools/psalm update",
"@composer -d tools/infection update",
"@composer -d tools/phpunit update",
"@composer update"
],
"normalize": "@composer -d tools/composer-normalize normalize --diff $PWD/composer.json",
"test": [
"@composer validate",
"@test:psalm",
"@test:phpunit",
"@test:cs-fixer",
"@test:phpmd",
"@test:composer-unused",
"@test:composer-require-checker",
"@test:composer-normalize"
],
"test:composer-normalize": "@composer -d tools/composer-normalize normalize --dry-run $PWD/composer.json",
"test:composer-require-checker": "@php tools/composer-require-checker/vendor/maglnet/composer-require-checker/bin/composer-require-checker",
"test:composer-unused": "@php tools/composer-unused/vendor/icanhazstring/composer-unused/bin/composer-unused --excludeDir=tools",
"test:cs-fixer": "@php tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --dry-run --diff",
"test:infection": "@php -d zend.assertions=1 -d assert.exception=1 -d display_errors=On -d error_reporting=-1 -d log_errors_max_len=0 -d memory_limit=-1 -d xdebug.mode=coverage -d pcov.enabled=1 -d pcov.directory=src tools/infection/vendor/infection/infection/bin/infection ",
"test:phpmd": "@php tools/phpmd/vendor/phpmd/phpmd/src/bin/phpmd src ansi phpmd.xml",
"test:phpunit": "@php -d zend.assertions=1 -d assert.exception=1 -d display_errors=On -d error_reporting=-1 -d log_errors_max_len=0 -d memory_limit=-1 -d xdebug.mode=coverage -d pcov.enabled=1 -d pcov.directory=src tools/phpunit/vendor/phpunit/phpunit/phpunit",
"test:psalm": "@php tools/psalm/vendor/vimeo/psalm/psalm"
},
"scripts-descriptions": {
"clean": "Remove all results, caches, temp-files and so on.",
"cs-fix": "Fix files according to coding standards.",
"dev-setup": "Install dev-requirements and tools.",
"normalize": "Normalize composer.json",
"test": "Run all tests!",
"test:composer-normalize": "Test if composer.json was normalized.",
"test:composer-require-checker": "Test compoer requirements with composer-require-checker.",
"test:composer-unused": "Test compoer requirements with composer-unused.",
"test:cs-fixer": "Test coding standards with PHP-CS-fixer.",
"test:infection": "Run mutation tests with Infection.",
"test:phpmd": "Run mess-detector with phpMD.",
"test:phpunit": "Run tests with PHPUnit.",
"test:psalm": "Run static code analysis with Psalm."
}
}