-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcomposer.json
More file actions
138 lines (138 loc) · 5.5 KB
/
composer.json
File metadata and controls
138 lines (138 loc) · 5.5 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"name": "open-telemetry/open-telemetry-php-distro",
"description": "OpenTelemetry PHP Distribution",
"keywords": [ "open telemetry", "OTel", "apm", "tracing", "apm-agent" ],
"type": "project",
"license": "Apache-2.0",
"authors": [
{
"name": "open-telemetry-php contributors",
"homepage": "https://github.com/open-telemetry/opentelemetry-php-distro/graphs/contributors"
}
],
"require": {
"php": "8.1.*||8.2.*||8.3.*||8.4.*",
"open-telemetry/exporter-otlp": "1.2.1",
"open-telemetry/opentelemetry-auto-curl": "0.0.3",
"open-telemetry/opentelemetry-auto-http-async": "1.1.0",
"open-telemetry/opentelemetry-auto-laravel": "1.1.0",
"open-telemetry/opentelemetry-auto-mysqli": "0.0.2",
"open-telemetry/opentelemetry-auto-pdo": "0.1.1",
"open-telemetry/opentelemetry-auto-postgresql": "dev-main",
"open-telemetry/opentelemetry-auto-slim": "1.1.0",
"open-telemetry/sdk": "1.9.0",
"open-telemetry/sem-conv": "1.32.0",
"php-http/guzzle7-adapter": "^1.0",
"nyholm/psr7-server": "^1.1"
},
"provide": {
"laravel/framework": "*",
"slim/slim": "*"
},
"require-dev": {
"composer/composer": "^2.0",
"dealerdirect/phpcodesniffer-composer-installer": "1.0.0",
"ext-ctype": "*",
"ext-curl": "*",
"ext-mysqli": "*",
"ext-pgsql": "*",
"ext-pdo": "*",
"ext-zlib": "*",
"guzzlehttp/guzzle": "^7.9.3",
"nikic/php-parser": "^5.5.0",
"php-ds/php-ds": "^1.7.0",
"php-parallel-lint/php-console-highlighter": "^1.0",
"php-parallel-lint/php-parallel-lint": "1.4.0",
"phpstan/phpstan": "2.1.31",
"phpstan/phpstan-phpunit": "2.0.7",
"phpunit/phpunit": "^10.5.47",
"react/http": "^1.11",
"slevomat/coding-standard": "8.19.1",
"squizlabs/php_codesniffer": "3.13.2"
},
"autoload-dev": {
"psr-4": {
"OpenTelemetry\\Distro\\": "./prod/php/OpenTelemetry/Distro/",
"OTelDistroTests\\": "./tests/OTelDistroTests/",
"OpenTelemetry\\DistroTools\\Build\\": "./tools/build/"
}
},
"config": {
"process-timeout": 0,
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"php-http/discovery": true,
"tbachert/spi": true
}
},
"scripts": {
"pre-install-cmd": [
"php tools/build/direct_composer_install_update_not_allowed.php install"
],
"pre-update-cmd": [
"php tools/build/direct_composer_install_update_not_allowed.php update"
],
"generate_lock_use_current_json": [
"@putenv OTEL_PHP_TOOLS_ALLOW_DIRECT_COMPOSER_COMMAND=true",
"composer --ignore-platform-req=ext-mysqli --ignore-platform-req=ext-pgsql --ignore-platform-req=ext-opentelemetry --no-interaction --no-plugins --no-scripts --no-install update"
],
"parallel-lint": [
"@putenv OTEL_PHP_ENABLED=false",
"@putenv OTEL_PHP_DISABLED_INSTRUMENTATIONS=all",
"@putenv OTEL_PHP_AUTOLOAD_ENABLED=false",
"parallel-lint ./prod/php/ ./tests/ ./tools/ --exclude ./tests/polyfills/"
],
"php_codesniffer_check": [
"@putenv OTEL_PHP_ENABLED=false",
"@putenv OTEL_PHP_DISABLED_INSTRUMENTATIONS=all",
"@putenv OTEL_PHP_AUTOLOAD_ENABLED=false",
"phpcs -s ./prod/php/ ./tests/ ./tools/"
],
"php_codesniffer_fix": [
"@putenv OTEL_PHP_ENABLED=false",
"@putenv OTEL_PHP_DISABLED_INSTRUMENTATIONS=all",
"@putenv OTEL_PHP_AUTOLOAD_ENABLED=false",
"phpcbf ./prod/php/ ./tests/ ./tools/"
],
"fix_code_format_for": [
"@putenv OTEL_PHP_ENABLED=false",
"@putenv OTEL_PHP_DISABLED_INSTRUMENTATIONS=all",
"@putenv OTEL_PHP_AUTOLOAD_ENABLED=false",
"phpcbf"
],
"phpstan-junit-report-for-ci": [
"@putenv OTEL_PHP_ENABLED=false",
"@putenv OTEL_PHP_DISABLED_INSTRUMENTATIONS=all",
"@putenv OTEL_PHP_AUTOLOAD_ENABLED=false",
"phpstan analyse --level max --memory-limit=1G --error-format=junit ./prod/php/ ./tests/ ./tools/ | tee build/phpstan-junit.xml"
],
"phpstan": [
"@putenv OTEL_PHP_ENABLED=false",
"@putenv OTEL_PHP_DISABLED_INSTRUMENTATIONS=all",
"@putenv OTEL_PHP_AUTOLOAD_ENABLED=false",
"phpstan analyse --level max --memory-limit=1G ./prod/php/ ./tests/ ./tools/"
],
"static_check": [
"composer run-script -- parallel-lint",
"composer run-script -- php_codesniffer_check",
"composer run-script -- phpstan"
],
"run_unit_tests": [
"@putenv OTEL_PHP_ENABLED=false",
"@putenv OTEL_PHP_DISABLED_INSTRUMENTATIONS=all",
"@putenv OTEL_PHP_AUTOLOAD_ENABLED=false",
"phpunit"
],
"static_check_and_run_unit_tests": [
"composer run-script -- static_check",
"composer run-script -- run_unit_tests"
],
"run_component_tests": [
"@putenv OTEL_PHP_ENABLED=false",
"@putenv OTEL_PHP_DISABLED_INSTRUMENTATIONS=all",
"@putenv OTEL_PHP_AUTOLOAD_ENABLED=false",
"phpunit -c phpunit_component_tests.xml"
]
}
}