forked from kenjis/ci3-to-4-upgrade-helper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
115 lines (115 loc) · 3.41 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
{
"name": "kenjis/ci3-to-4-upgrade-helper",
"type": "library",
"description": "Help upgrade from CodeIgniter3 to CodeIgniter4",
"keywords": ["codeigniter","codeigniter3","codeigniter4"],
"homepage": "https://github.com/kenjis/ci3-to-4-upgrade-helper",
"license": "MIT",
"authors": [
{
"name": "Kenji Suzuki",
"homepage": "https://github.com/kenjis"
}
],
"config": {
"preferred-install": {
"codeigniter4/codeigniter4": "source",
"*": "dist"
}
},
"require": {
"php": "^7.3 || ^8.0",
"kenjis/ci3-like-captcha": "^1.0.1",
"kenjis/phpunit-helper": "^1.1.2"
},
"require-dev": {
"phpunit/phpunit": "^9.5.11",
"squizlabs/php_codesniffer": "^3.5",
"phpmd/phpmd": "^2.9",
"phpstan/phpstan": "^1.3",
"vimeo/psalm": "^4.1",
"phpmetrics/phpmetrics": "^2.7",
"doctrine/coding-standard": "^9.0",
"friendsofphp/php-cs-fixer": "^3.4",
"codeigniter4/codeigniter4": "^4.1.3",
"mikey179/vfsstream": "^1.6.10"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/codeigniter4/codeigniter4"
}
],
"autoload": {
"psr-4": {
"Kenjis\\CI3Compatible\\": "src/CI3Compatible"
},
"files": [
"src/CI3Compatible/bootstrap.php"
]
},
"autoload-dev": {
"psr-4": {
"Kenjis\\CI3Compatible\\": [
"tests/CI3Compatible",
"tests/CI3Compatible/Fake"
],
"App\\": [
"tests/App",
"vendor/codeigniter4/codeigniter4/app"
],
"Tests\\Support\\": "vendor/codeigniter4/codeigniter4/admin/starter/tests/_support"
}
},
"scripts": {
"test": [
"vendor/bin/phpunit"
],
"tests": [
"@cs",
"@sa",
"@test"
],
"coverage": [
"php -dzend_extension=xdebug.so ./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 --standard=phpcs.xml src tests"
],
"cs-fix": [
"./vendor/bin/phpcbf src tests",
"./vendor/bin/php-cs-fixer fix"
],
"sa": [
"phpstan analyse -c phpstan.neon",
"psalm --show-info=true",
"./vendor/bin/phpmd src text ./phpmd.xml"
],
"metrics": [
"phpmetrics --report-html=build/metrics --excluded-dirs=src/Exception src"
],
"sabik": [
"npx sabik src -o build/sabik"
],
"build": [
"@cs",
"@sa",
"@pcov",
"@metrics"
]
},
"scripts-descriptions": {
"test": "Run unit tests",
"tests": "Run tests and quality checks",
"coverage": "Generate test coverage report",
"pcov": "Generate test coverage report (pcov)",
"cs": "Check the coding style",
"cs-fix": "Fix the coding style",
"sa": "Run static analysis",
"metrics": "Build metrics report",
"build": "Build project"
}
}