Repository navigation
Expand file tree
/
Copy pathcomposer.json
More file actions
95 lines (95 loc) · 3.61 KB
/
Copy pathcomposer.json
File metadata and controls
95 lines (95 loc) · 3.61 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
{
"name": "shlinkio/shlink-php-sdk",
"description": "A PHP SDK to consume Shlink's REST API",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Alejandro Celaya",
"homepage": "https://www.alejandrocelaya.com",
"email": "alejandro@alejandrocelaya.com"
}
],
"require": {
"php": "^8.4",
"psr/http-client": "^1.0",
"psr/http-factory": "^1.1"
},
"require-dev": {
"carthage-software/mago": "^1.45",
"devster/ubench": "^2.1",
"guzzlehttp/guzzle": "^7.15",
"phpunit/phpcov": "^13.0",
"phpunit/phpunit": "^13.1",
"shlinkio/shlink-mago-config": "^1.1",
"symfony/var-dumper": "^8.1"
},
"autoload": {
"psr-4": {
"Shlinkio\\Shlink\\SDK\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"ShlinkioTest\\Shlink\\SDK\\": "test",
"ShlinkioIntegrationTest\\Shlink\\SDK\\": "test-integration"
}
},
"scripts": {
"ci": [
"@cs",
"@analyze",
"@test:unit"
],
"lint": "mago lint",
"lint:fix": "mago lint --fix",
"format": "mago format",
"format:check": "mago format --check",
"cs": ["@lint", "@format:check"],
"cs:fix": ["@lint:fix", "@format"],
"analyze": "mago analyze",
"stan": "@analyze",
"test:unit": "phpunit --order-by=random --testdox --testdox-summary",
"test:unit:ci": [
"@putenv XDEBUG_MODE=coverage",
"@test:unit --coverage-php=build/coverage-unit.cov"
],
"test:unit:pretty": [
"@putenv XDEBUG_MODE=coverage",
"@test:unit --coverage-html=build/coverage-unit-html"
],
"test:integration": "test-integration/run-tests.sh",
"test:integration:ci": [
"@putenv XDEBUG_MODE=coverage",
"@test:integration --coverage-php=build/coverage-integration.cov"
],
"test:integration:pretty": [
"@putenv XDEBUG_MODE=coverage",
"@test:integration --coverage-html=build/coverage-integration-html"
],
"test:ci": "composer test:unit:ci && vendor/bin/phpcov merge build --clover build/clover.xml",
"docs:serve": [
"Composer\\Config::disableProcessTimeout",
"php -S 0.0.0.0:8888 -t docs"
]
},
"scripts-descriptions": {
"ci": "<fg=blue;options=bold>Alias for \"cs\", \"analyze\" and \"test:ci\"</>",
"cs": "<fg=blue;options=bold>Checks coding styles</>",
"cs:fix": "<fg=blue;options=bold>Fixes coding styles, when possible</>",
"analyze": "<fg=blue;options=bold>Inspects code with mago analyze</>",
"test:unit": "<fg=blue;options=bold>Runs unit tests with no coverage reports</>",
"test:unit:ci": "<fg=blue;options=bold>Runs unit tests generating coverage reports in PHP</>",
"test:unit:pretty": "<fg=blue;options=bold>Runs unit tests generating coverage reports in html</>",
"test:integration": "<fg=blue;options=bold>Runs integration tests with no coverage reports</>",
"test:integration:ci": "<fg=blue;options=bold>Runs integration tests generating coverage reports in PHP</>",
"test:integration:pretty": "<fg=blue;options=bold>Runs integration tests generating coverage reports in HTML</>",
"docs:serve": "Allows you to access the documentation on http://localhost:8888"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}