-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
115 lines (115 loc) · 3.96 KB
/
composer.json
File metadata and controls
115 lines (115 loc) · 3.96 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"name": "constraint-engine/app",
"type": "project",
"license": "proprietary",
"description": "",
"require": {
"php": "^8.4",
"be-framework/be": "@dev",
"bear/aura-router-module": "^2.0",
"bear/package": "^1.14",
"bear/resource": "^1.17",
"bear/sunday": "^1.6",
"koriym/env-json": "^1.0",
"guzzlehttp/guzzle": "^7.0",
"mcp/sdk": "^0.4",
"monolog/monolog": "^3.0",
"ray/aop": "^2.12",
"ray/di": "^2.14",
"ray/media-query": "^1.0"
},
"require-dev": {
"bear/api-doc": "^1.7",
"bear/devtools": "^1.0",
"bear/security": "^0.1",
"bamarni/composer-bin-plugin": "^1.4",
"phpunit/phpunit": "^10.0",
"roave/security-advisories": "dev-latest"
},
"autoload": {
"psr-4": {
"ConstraintEngine\\App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"ConstraintEngine\\App\\": "tests/"
}
},
"scripts": {
"post-install-cmd": [
"@setup",
"@composer bin all install --ansi"
],
"setup": "php bin/setup.php",
"compile": "./vendor/bin/bear.compile 'ConstraintEngine\\App' prod-app ./",
"doc": "./vendor/bin/apidoc",
"test": "./vendor/bin/phpunit",
"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": "./vendor/bin/phpcs",
"cs-fix": "./vendor/bin/phpcbf src tests",
"metrics": "./vendor/bin/phpmetrics --report-html=build/metrics --exclude=Exception src",
"clean": [
"./vendor/bin/phpstan clear-result-cache",
"./vendor/bin/psalm --clear-cache",
"rm -rf ./var/tmp/*.php"
],
"sa": [
"./vendor/bin/psalm --show-info=true",
"./vendor/bin/phpstan analyse -c phpstan.neon"
],
"phpmd": "php -d error_reporting=22527 ./vendor/bin/phpmd src text ./phpmd.xml",
"security": "./vendor/bin/bear.security-scan src",
"tests": [
"@cs",
"@sa",
"@phpmd",
"@test"
],
"build": [
"@clean",
"@cs",
"@sa",
"@test",
"@compile"
],
"serve": "COMPOSER_PROCESS_TIMEOUT=0 php -dzend_extension=xdebug.so -S 127.0.0.1:8080 -t public",
"app": "php bin/app.php",
"page": "php bin/page.php",
"profile": "php -dzend_extension=xdebug.so -dxdebug.mode=profile -dxdebug.output_dir=./var/log -dxdebug.profiler_output_name=cachegrind.out.%t bin/page.php get /"
},
"scripts-descriptions": {
"setup": "Setup the project",
"compile": "Compile scripts for the production",
"doc": "Generate API document",
"test": "Run unit tests",
"tests": "Run tests and quality checks",
"coverage": "Generate test coverage report",
"pcov": "Generate test coverage report (pcov)",
"cs": "Checks the coding standard",
"cs-fix": "Fix the coding standard",
"sa": "Run static analysis",
"phpmd": "Detect code quality issues",
"security": "Run security scan",
"metrics": "Build metrics report",
"clean": "Clear cache files",
"serve": "Start built-in server",
"app": "Request app resource",
"page": "Request page resource",
"profile": "Profile page request (customize endpoint as needed)"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"bamarni/composer-bin-plugin": true,
"php-http/discovery": true
}
},
"extra": {
"bamarni-bin": {
"bin-links": true,
"forward-command": false
}
}
}