Repository navigation
Expand file tree
/
Copy pathcomposer.json
More file actions
46 lines (46 loc) · 1.82 KB
/
Copy pathcomposer.json
File metadata and controls
46 lines (46 loc) · 1.82 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
{
"name": "detain/phlix-shared",
"description": "Shared interfaces, DTOs, event names, and protocol types used by both phlix-server and phlix-hub. Composer-installable, PHP 8.3+, zero I/O by charter — the only bundled network code is the blocking CurlArrTransport (CLI/test only); event-loop consumers MUST inject an async ArrTransportInterface.",
"type": "library",
"license": "MIT",
"require": {
"php": "^8.3",
"psr/clock": "^1.0",
"psr/container": "^2.0",
"psr/event-dispatcher": "^1.0",
"psr/log": "^3.0"
},
"require-dev": {
"ext-curl": "*",
"phpunit/phpunit": "^10.0",
"phpstan/phpstan": "^2.0",
"squizlabs/php_codesniffer": "^3.10",
"vimeo/psalm": "^5.0"
},
"suggest": {
"ext-curl": "Required only for the bundled blocking Arr\\Transport\\CurlArrTransport (CLI/test use). Event-loop (Workerman/Webman) consumers should inject an async ArrTransportInterface instead and do not need ext-curl.",
"workerman/http-client": "Event-loop (Workerman/Webman) consumers should inject a workerman/http-client-backed Arr\\Transport\\ArrTransportInterface so *arr API calls do not block the worker; the bundled CurlArrTransport is blocking and for CLI/test only."
},
"autoload": {
"psr-4": {
"Phlix\\Shared\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Phlix\\Shared\\Tests\\": "tests/"
}
},
"minimum-stability": "stable",
"config": {
"optimize-autoloader": true,
"sort-packages": true
},
"scripts": {
"test": "phpunit",
"stan": "phpstan analyze --no-progress",
"cs": "phpcs --standard=PSR12 src/",
"cs-tests": "phpcs --standard=phpcs-tests.xml",
"psalm": "psalm --no-progress"
}
}