-
Notifications
You must be signed in to change notification settings - Fork 12
/
composer.json
123 lines (122 loc) · 5.31 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
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
116
117
118
119
120
121
122
123
{
"name": "not-empty/ala-microframework-php",
"description": "API Rest based in lumen using query builder that auto generate base code for simple crud (with automatic generated 100% unit and feature tests). To be used as a simple and fast way to implement microservices architecture",
"keywords": ["php", "laravel", "lumen", "crud", "microframework", "microservices", "code-generation"],
"license": "GPL-3.0-only",
"version" : "7.0.1",
"type": "project",
"require": {
"php": "^8.3",
"intouch/newrelic": "^2.0",
"laravel/lumen-framework": "^10.0",
"not-empty/jwt-manager-php-lib": "^7.0",
"not-empty/request-service-php-lib": "^7.0",
"not-empty/response-json-php-lib": "^7.0",
"not-empty/ulid-php-lib": "^7.0"
},
"require-dev": {
"fakerphp/faker": "^1.23",
"mockery/mockery": "^1.6",
"phpmd/phpmd": "^2.14",
"phpunit/phpunit": "^10.4",
"squizlabs/php_codesniffer": "^3.7",
"pdepend/pdepend": "2.15.*"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-install-cmd": [
"./ops/folders.sh"
],
"checkall" : [
"@lint",
"@cs",
"@mess",
"@test"
],
"check" : [
"@lint",
"@cs",
"@mess",
"@test-unit"
],
"checkallcover" : [
"@lint",
"@cs",
"@mess",
"@test-cover",
"@ccu",
"@ccf"
],
"checkcover" : [
"@lint",
"@cs",
"@mess",
"@test-unit-cover",
"@ccu"
],
"lint" : [
"find ./app -name '*.php' -print0 | xargs -0 -n1 -P8 php -l -d display_errors=0",
"find ./bootstrap -name '*.php' -print0 | xargs -0 -n1 -P8 php -l -d display_errors=0",
"find ./config -name '*.php' -print0 | xargs -0 -n1 -P8 php -l -d display_errors=0",
"find ./database -name '*.php' -print0 | xargs -0 -n1 -P8 php -l -d display_errors=0",
"find ./public -name '*.php' -print0 | xargs -0 -n1 -P8 php -l -d display_errors=0",
"find ./resources -name '*.php' -print0 | xargs -0 -n1 -P8 php -l -d display_errors=0",
"find ./routes -name '*.php' -print0 | xargs -0 -n1 -P8 php -l -d display_errors=0",
"find ./tests -name '*.php' -print0 | xargs -0 -n1 -P8 php -l -d display_errors=0"
],
"mess" : [
"vendor/bin/phpmd ./app text phpmd.xml",
"vendor/bin/phpmd ./bootstrap text phpmd.xml",
"vendor/bin/phpmd ./config text phpmd.xml",
"vendor/bin/phpmd ./database text phpmd.xml",
"vendor/bin/phpmd ./public text phpmd.xml",
"vendor/bin/phpmd ./resources text phpmd.xml",
"vendor/bin/phpmd ./routes text phpmd.xml"
],
"cs" : "vendor/bin/phpcs",
"test-unit": [
"vendor/bin/phpunit --configuration tests/config/phpunit-unit.xml -d memory_limit=1024M"
],
"test-unit-cover": [
"vendor/bin/phpunit --configuration tests/config/phpunit-unit-cover.xml --coverage-clover tests/coverage/coverage-unit/coverage.xml --log-junit tests/coverage/junit.xml -d memory_limit=1024M",
"sed -i 's+/var/www/html/++g' tests/coverage/coverage-unit/coverage.xml"
],
"test-feat": [
"vendor/bin/phpunit --configuration tests/config/phpunit-feat.xml -d memory_limit=1024M"
],
"test-feat-cover": [
"vendor/bin/phpunit --configuration tests/config/phpunit-feat-cover.xml --coverage-clover tests/coverage/coverage-feature/coverage.xml --log-junit tests/coverage/junit.xml -d memory_limit=1024M",
"sed -i 's+/var/www/html/++g' tests/coverage/coverage-feature/coverage.xml"
],
"test": [
"vendor/bin/phpunit --configuration tests/config/phpunit-unit.xml -d memory_limit=1024M",
"vendor/bin/phpunit --configuration tests/config/phpunit-feat.xml -d memory_limit=1024M"
],
"test-cover": [
"vendor/bin/phpunit --configuration tests/config/phpunit-unit-cover.xml --coverage-clover tests/coverage/coverage-unit/coverage.xml --log-junit tests/coverage/junit.xml -d memory_limit=1024M",
"sed -i 's+/var/www/html/++g' tests/coverage/coverage-unit/coverage.xml",
"vendor/bin/phpunit --configuration tests/config/phpunit-feat-cover.xml --coverage-clover tests/coverage/coverage-feature/coverage.xml --log-junit tests/coverage/junit.xml -d memory_limit=1024M",
"sed -i 's+/var/www/html/++g' tests/coverage/coverage-feature/coverage.xml"
],
"ccu" : "php ops/contrib/coverage-checker.php tests/coverage/coverage-unit/coverage.xml 100",
"ccf" : "php ops/contrib/coverage-checker.php tests/coverage/coverage-feature/coverage.xml 100"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
}