-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathcomposer.json
More file actions
81 lines (81 loc) · 2.91 KB
/
composer.json
File metadata and controls
81 lines (81 loc) · 2.91 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
{
"name": "ray/aop",
"description": "An aspect oriented framework",
"keywords": ["AOP"],
"license": "MIT",
"authors": [
{
"name": "Akihito Koriyama",
"email": "akihito.koriyama@gmail.com"
}
],
"require": {
"php": "^8.2",
"ext-tokenizer": "*"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.4.1",
"infection/infection": "^0.31.9",
"phpunit/phpunit": "^10.5.0",
"symfony/string": "^7.2"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"bamarni/composer-bin-plugin": true,
"infection/extension-installer": true
}
},
"autoload": {
"psr-4": {
"Ray\\Aop\\": ["src/", "src-deprecated/"],
"Ray\\ServiceLocator\\": "src-deprecated/"
}
},
"autoload-dev": {
"psr-4": {
"Ray\\Aop\\": ["tests/", "tests/Fake/", "tests/Aspect", "tests/Aspect/Fake"]
},
"files": [
"tests/Fake/FakeGlobalNamespaced.php",
"tests/Fake/FakeGlobalEmptyNamespaced.php"
]
},
"suggest": {
"ray/di": "A dependency injection framework"
},
"scripts" :{
"test": ["phpunit"],
"tests": ["@cs", "@test", "@sa"],
"coverage": ["php -dzend_extension=xdebug.so -dxdebug.mode=coverage ./vendor/bin/phpunit --coverage-text --coverage-html=build/coverage"],
"pcov": ["php -dextension=pcov.so -d pcov.enabled=1 ./vendor/bin/phpunit --coverage-text --coverage-html=build/coverage --coverage-clover=coverage.xml"],
"cs": ["phpcs --standard=./phpcs.xml src tests"],
"cs-fix": ["phpcbf src tests"],
"clean": ["phpstan clear-result-cache", "psalm --clear-cache", "rm -rf tests/tmp/*.php"],
"sa": ["psalm --monochrome --show-info=true", "phpstan --memory-limit=-1 analyse -c phpstan.neon"],
"metrics": ["phpmetrics --report-html=build/metrics --exclude=Exception src"],
"phpmd": ["phpmd src text ./phpmd.xml"],
"mt": ["infection --threads=4"],
"build": ["@cs", "@sa", "@pcov", "@metrics", "@mt"]
},
"scripts-descriptions": {
"test": "Run unit tests",
"tests": "Run coding standards, tests, and static analysis",
"coverage": "Generate test coverage report with Xdebug",
"pcov": "Generate test coverage report with PCOV",
"cs": "Check coding standards",
"cs-fix": "Fix coding standards violations",
"clean": "Clear all caches",
"sa": "Run static analysis (Psalm and PHPStan)",
"metrics": "Generate code metrics report",
"phpmd": "Run PHP Mess Detector",
"mt": "Run mutation testing with Infection",
"build": "Run full build process (cs, sa, coverage, metrics, mt)"
},
"extra": {
"bamarni-bin": {
"forward-command": true,
"bin-links": true
}
}
}