-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
76 lines (76 loc) · 1.89 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
{
"name": "r0mdau/fradoos",
"type": "project",
"description": "PHP DDD Skeleton using SLIM framework, Doctrine ORM and PHPUnit tests",
"keywords": [
"php",
"slimframework",
"phpunit",
"ddd",
"orm",
"doctrine"
],
"homepage": "https://github.com/r0mdau/fradoos",
"license": "Apache-2.0",
"authors": [
{
"name": "Romain Dauby",
"email": "romain.dauby@gmail.com"
}
],
"autoload": {
"psr-4": {
"Fradoos\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Fradoos\\": "test/"
}
},
"require": {
"php": ">=7.4",
"slim/slim": "3.12.*",
"doctrine/orm": "2.7.*",
"monolog/monolog": "2.0.*",
"zircote/swagger-php": "^2.0",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^9.0",
"squizlabs/php_codesniffer": "3.*",
"phpstan/phpstan": "0.12.*"
},
"scripts": {
"create-db": "mysql -h::1 -uroot -ptest -e \"create database if not exists fradoos;\"",
"dump-db": "doctrine orm:schema-tool:update --dump-sql",
"update-db": [
"@create-db",
"@dump-db",
"doctrine orm:schema-tool:update --force"
],
"generate-proxies": "doctrine orm:generate-proxies",
"phpcs": "phpcs -s src --standard=phpcs.xml --ignore=src/routes.php",
"phpcbf": "phpcbf src --ignore=src/routes.php",
"phpstan": [
"phpstan analyse -l5 src",
"phpstan analyse -l4 test"
],
"start": "docker-compose up",
"test-all": "phpunit",
"test-unit": "phpunit --testsuite unit",
"test-infra": "phpunit --testsuite infra",
"test-infrastructure": "phpunit --testsuite Infrastructure",
"test-coverage": "XDEBUG_MODE=coverage phpunit --testsuite unit --colors=always --coverage-clover clover.xml",
"verify": [
"@test-all",
"@phpstan",
"@phpcs"
]
},
"config": {
"allow-plugins": {
"ocramius/package-versions": true
}
}
}