-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcomposer.json
71 lines (71 loc) · 2.16 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
68
69
70
71
{
"name": "beste/psr-testlogger",
"description": "PSR-3 compliant test logger for developers who like tests and want to check if their application logs messages as they expect.",
"keywords": ["log", "logging", "psr-3", "testing"],
"license": "MIT",
"type": "library",
"authors": [
{
"name": "Jérôme Gamez",
"email": "[email protected]"
}
],
"require": {
"php": "^8.1",
"ext-mbstring": "*",
"psr/log": "^2.0|^3.0"
},
"require-dev": {
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^1.8.2",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.1.1",
"phpstan/phpstan-strict-rules": "^1.4",
"phpunit/phpunit": "^9.5.23",
"symfony/var-dumper": "^6.1"
},
"autoload": {
"psr-4": {
"Beste\\Psr\\Log\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Beste\\Psr\\Log\\Example\\": "examples",
"Beste\\Psr\\Log\\Tests\\": "tests"
}
},
"config": {
"allow-plugins": {
"phpstan/extension-installer": true
},
"sort-packages": true
},
"scripts": {
"coverage": [
"XDEBUG_MODE=coverage phpunit --testdox --coverage-html=.build/coverage",
"open .build/coverage/index.html"
],
"cs": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --diff --verbose",
"install-dev-tools": [
"mkdir --parents .build",
"@install-php-cs-fixer"
],
"install-php-cs-fixer": [
"mkdir --parents tools/php-cs-fixer",
"composer require --working-dir=tools/php-cs-fixer beste/php-cs-fixer-config"
],
"phpstan": "vendor/bin/phpstan analyse",
"phpunit": "vendor/bin/phpunit",
"test": [
"@phpstan",
"@phpunit"
]
},
"scripts-descriptions": {
"cs": "Applies coding standards",
"phpstan": "Runs static analysis with PHPStan",
"phpunit": "Runs tests with PHPUnit",
"test": "Runs static analysis and test suites"
}
}