-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
executable file
·75 lines (74 loc) · 2.18 KB
/
Copy pathcomposer.json
File metadata and controls
executable file
·75 lines (74 loc) · 2.18 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
{
"name": "tomrf/http-emitter",
"type": "library",
"description": "PSR-7 response emitter",
"keywords": [ "http", "psr-7", "response-emitter", "http-message", "sapi", "cli-sapi" ],
"homepage": "http://github.com/tomrf/http-emitter",
"license": "MIT",
"extra": {
"intro": [
"Simple PSR-7 response emitter with sensible CLI SAPI output"
],
"example": [
"$httpEmitter = new HttpEmitter();",
"$httpEmitter->emit($response); // PSR-7 response object"
]
},
"require": {
"php": ">=8.0",
"psr/http-message": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"phpstan/phpstan": "^1.6",
"friendsofphp/php-cs-fixer": "^3.8",
"phpmd/phpmd": "^2.12",
"roave/security-advisories": "dev-latest",
"nyholm/psr7-server": "^1.0",
"nyholm/psr7": "^1.5",
"fakerphp/faker": "^1.19",
"tomrf/readme-gen": "^0.0.5"
},
"autoload": {
"psr-4": {
"Tomrf\\HttpEmitter\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tomrf\\HttpEmitter\\Test\\": "tests/"
}
},
"scripts": {
"phpunit": [
"phpunit -c .phpunit.dist.xml --colors=auto --coverage-text --stderr"
],
"cs-fixer": [
"php-cs-fixer fix --allow-risky=yes --diff --verbose src/"
],
"phpstan": [
"phpstan analyze --level max src/"
],
"phpmd": [
"phpmd src/ ansi .phpmd-ruleset.xml"
],
"test": [
"@phpunit",
"@phpmd",
"@phpstan"
],
"coverage": [
"@putenv XDEBUG_MODE=coverage",
"@phpunit --coverage-xml .phpunit.cache/code-coverage/xml",
"ls -al .phpunit.cache/code-coverage/xml"
],
"coverage-html": [
"@putenv XDEBUG_MODE=coverage",
"@phpunit --coverage-html .phpunit.cache/code-coverage/html",
"php -S localhost:0 -t .phpunit.cache/code-coverage/html"
],
"clean": [
"rm -rf vendor/ .phpunit.cache .php-cs-fixer.cache"
]
}
}