-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcomposer.json
42 lines (42 loc) · 1.01 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
{
"name": "kba-team/serial-port",
"description": "Connect to serial ports using TCP connections.",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Gregor J.",
"email": "gregor-j@users.noreply.github.com",
"role": "developer"
}
],
"minimum-stability": "stable",
"require": {
"php": "^7.2",
"ext-json": "*",
"ext-sockets": "*"
},
"autoload": {
"psr-4": {
"kbATeam\\SerialPort\\": "src"
}
},
"require-dev": {
"phpunit/phpunit": "^8.5"
},
"autoload-dev": {
"psr-4": {
"Tests\\kbATeam\\SerialPort\\": "tests/"
}
},
"scripts": {
"start-echo": [
"mkfifo ./fifo",
"cat ./fifo | nc -l 127.0.0.1 9999 -k > ./fifo & echo \"$!\" > ./nc.pid"
],
"stop-echo": [
"if [ -f ./nc.pid ]; then kill $(cat ./nc.pid) || true; fi",
"rm -f ./nc.pid ./fifo"
]
}
}