-
Notifications
You must be signed in to change notification settings - Fork 39
/
composer.json
67 lines (67 loc) · 1.75 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
{
"name": "christeredvartsen/php-bittorrent",
"type": "library",
"description": "A set of components that can be used to interact with torrent files (read+write) and classes that can encode/decode to/from the BitTorrent format.",
"keywords": [
"bittorrent",
"torrent"
],
"homepage": "https://github.com/christeredvartsen/php-bittorrent",
"license": "MIT",
"authors": [
{
"name": "Christer Edvartsen",
"email": "[email protected]"
}
],
"require": {
"php": ">=7.2"
},
"require-dev": {
"phpunit/phpunit": "^8.5",
"phploc/phploc": "^5.0",
"phpstan/phpstan": "^0.12"
},
"support": {
"source": "https://github.com/christeredvartsen/php-bittorrent",
"issues": "https://github.com/christeredvartsen/php-bittorrent/issues"
},
"autoload": {
"psr-4": {
"BitTorrent\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"BitTorrent\\": "tests/"
}
},
"scripts": {
"clean:build": "rm -rf build",
"qa:lint": "for file in `git ls-files '*php'`; do php -l $file; done",
"qa:phpstan": "vendor/bin/phpstan analyse src -l max --no-progress",
"qa:phploc": [
"rm -rf build/artifacts/phploc",
"mkdir -p build/artifacts/phploc",
"vendor/bin/phploc --log-xml build/artifacts/phploc/phploc.xml src"
],
"qa": [
"@qa:lint",
"@qa:phploc",
"@qa:phpstan"
],
"test:phpunit": "vendor/bin/phpunit --verbose",
"test:phpunit:coverage": [
"rm -rf build/artifacts/phpunit/coverage",
"mkdir -p build/artifacts/phpunit/coverage",
"vendor/bin/phpunit --verbose --coverage-text --coverage-html build/artifacts/phpunit/coverage"
],
"test": [
"@test:phpunit"
],
"ci": [
"@qa",
"@test"
]
}
}