質問編集履歴

1

composer.jsonの追加

2021/01/13 06:44

投稿

meruchaaan
meruchaaan

スコア18

test CHANGED
File without changes
test CHANGED
@@ -95,3 +95,119 @@
95
95
  [CakePHP4を試す
96
96
 
97
97
  ](https://www.m-kobayashi.org/working_log/2020/06/04_01.html)
98
+
99
+
100
+
101
+ composer.jsonファイル
102
+
103
+ ```php
104
+
105
+ {
106
+
107
+ "name": "cakephp/app",
108
+
109
+ "description": "CakePHP skeleton app",
110
+
111
+ "homepage": "https://cakephp.org",
112
+
113
+ "type": "project",
114
+
115
+ "license": "MIT",
116
+
117
+ "require": {
118
+
119
+ "php": ">=7.2",
120
+
121
+ "cakephp/cakephp": "~4.2.0",
122
+
123
+ "cakephp/migrations": "^3.0",
124
+
125
+ "cakephp/plugin-installer": "^1.3",
126
+
127
+ "mobiledetect/mobiledetectlib": "^2.8"
128
+
129
+ },
130
+
131
+ "require-dev": {
132
+
133
+ "cakephp/bake": "^2.3",
134
+
135
+ "cakephp/cakephp-codesniffer": "~4.2.0",
136
+
137
+ "cakephp/debug_kit": "^4.4",
138
+
139
+ "josegonzalez/dotenv": "^3.2",
140
+
141
+ "phpunit/phpunit": "~8.5.0 || ^9.3",
142
+
143
+ "psy/psysh": "@stable"
144
+
145
+ },
146
+
147
+ "suggest": {
148
+
149
+ "markstory/asset_compress": "An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.",
150
+
151
+ "dereuromark/cakephp-ide-helper": "After baking your code, this keeps your annotations in sync with the code evolving from there on for maximum IDE and PHPStan/Psalm compatibility.",
152
+
153
+ "phpstan/phpstan": "PHPStan focuses on finding errors in your code without actually running it. It catches whole classes of bugs even before you write tests for the code."
154
+
155
+ },
156
+
157
+ "autoload": {
158
+
159
+ "psr-4": {
160
+
161
+ "App\": "src/"
162
+
163
+ }
164
+
165
+ },
166
+
167
+ "autoload-dev": {
168
+
169
+ "psr-4": {
170
+
171
+ "App\Test\": "tests/",
172
+
173
+ "Cake\Test\": "vendor/cakephp/cakephp/tests/"
174
+
175
+ }
176
+
177
+ },
178
+
179
+ "scripts": {
180
+
181
+ "post-install-cmd": "App\Console\Installer::postInstall",
182
+
183
+ "post-create-project-cmd": "App\Console\Installer::postInstall",
184
+
185
+ "check": [
186
+
187
+ "@test",
188
+
189
+ "@cs-check"
190
+
191
+ ],
192
+
193
+ "cs-check": "phpcs --colors -p src/ tests/",
194
+
195
+ "cs-fix": "phpcbf --colors -p src/ tests/",
196
+
197
+ "stan": "phpstan analyse",
198
+
199
+ "test": "phpunit --colors=always"
200
+
201
+ },
202
+
203
+ "prefer-stable": true,
204
+
205
+ "config": {
206
+
207
+ "sort-packages": true
208
+
209
+ }
210
+
211
+ }
212
+
213
+ ```