-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
composer.json
125 lines (125 loc) · 4.7 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
{
"name": "cyclonedx/cyclonedx-php-composer",
"description": "Creates CycloneDX Software Bill-of-Materials (SBOM) from PHP Composer projects",
"license": "Apache-2.0",
"type": "composer-plugin",
"keywords": [
"composer",
"CycloneDX",
"bill-of-materials",
"BOM",
"software-bill-of-materials",
"SBOM",
"package-url",
"PURL",
"SPDX"
],
"authors": [
{
"name": "Jan Kowalleck",
"email": "jan.kowalleck@gmail.com",
"homepage": "https://github.com/jkowalleck"
}
],
"homepage": "https://github.com/CycloneDX/cyclonedx-php-composer/#readme",
"support": {
"issues": "https://github.com/CycloneDX/cyclonedx-php-composer/issues",
"source": "https://github.com/CycloneDX/cyclonedx-php-composer/"
},
"funding": [
{
"type": "other",
"url": "https://owasp.org/donate/?reponame=www-project-cyclonedx&title=OWASP+CycloneDX"
}
],
"require": {
"php": "^8.1",
"composer-plugin-api": "^2.3",
"cyclonedx/cyclonedx-library": "^3.3",
"package-url/packageurl-php": "^1.0"
},
"require-dev": {
"composer/composer": "^2.3.0",
"roave/security-advisories": "dev-latest"
},
"prefer-stable": true,
"autoload": {
"psr-4": {
"CycloneDX\\Composer\\": "src/"
}
},
"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": "5.x-dev"
},
"class": "CycloneDX\\Composer\\Plugin",
"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",
"rm -rf .tmp"
],
"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/psalm 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: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": [
"@putenv XDEBUG_MODE=off",
"@php tools/composer-require-checker/vendor/maglnet/composer-require-checker/bin/composer-require-checker check"
],
"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: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 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 composer requirements with composer-require-checker.",
"test:composer-unused": "Test composer requirements with composer-unused.",
"test:cs-fixer": "Test coding standards with PHP-CS-fixer.",
"test:phpunit": "Run tests with PHPUnit.",
"test:psalm": "Run static code analysis with Psalm."
}
}