teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

composer.jsonの追加

2021/01/13 06:44

投稿

meruchaaan
meruchaaan

スコア18

title CHANGED
File without changes
body CHANGED
@@ -46,4 +46,62 @@
46
46
  [CakePHP4でブログサイト作るチュートリアル](https://www.webopixel.net/cakephp/1612.html)
47
47
  [CakePHP4でログイン、ログアウトを実装する](https://specially198.com/implement-login-and-logout-with-cakephp4/)
48
48
  [CakePHP4を試す
49
- ](https://www.m-kobayashi.org/working_log/2020/06/04_01.html)
49
+ ](https://www.m-kobayashi.org/working_log/2020/06/04_01.html)
50
+
51
+ composer.jsonファイル
52
+ ```php
53
+ {
54
+ "name": "cakephp/app",
55
+ "description": "CakePHP skeleton app",
56
+ "homepage": "https://cakephp.org",
57
+ "type": "project",
58
+ "license": "MIT",
59
+ "require": {
60
+ "php": ">=7.2",
61
+ "cakephp/cakephp": "~4.2.0",
62
+ "cakephp/migrations": "^3.0",
63
+ "cakephp/plugin-installer": "^1.3",
64
+ "mobiledetect/mobiledetectlib": "^2.8"
65
+ },
66
+ "require-dev": {
67
+ "cakephp/bake": "^2.3",
68
+ "cakephp/cakephp-codesniffer": "~4.2.0",
69
+ "cakephp/debug_kit": "^4.4",
70
+ "josegonzalez/dotenv": "^3.2",
71
+ "phpunit/phpunit": "~8.5.0 || ^9.3",
72
+ "psy/psysh": "@stable"
73
+ },
74
+ "suggest": {
75
+ "markstory/asset_compress": "An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.",
76
+ "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.",
77
+ "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."
78
+ },
79
+ "autoload": {
80
+ "psr-4": {
81
+ "App\": "src/"
82
+ }
83
+ },
84
+ "autoload-dev": {
85
+ "psr-4": {
86
+ "App\Test\": "tests/",
87
+ "Cake\Test\": "vendor/cakephp/cakephp/tests/"
88
+ }
89
+ },
90
+ "scripts": {
91
+ "post-install-cmd": "App\Console\Installer::postInstall",
92
+ "post-create-project-cmd": "App\Console\Installer::postInstall",
93
+ "check": [
94
+ "@test",
95
+ "@cs-check"
96
+ ],
97
+ "cs-check": "phpcs --colors -p src/ tests/",
98
+ "cs-fix": "phpcbf --colors -p src/ tests/",
99
+ "stan": "phpstan analyse",
100
+ "test": "phpunit --colors=always"
101
+ },
102
+ "prefer-stable": true,
103
+ "config": {
104
+ "sort-packages": true
105
+ }
106
+ }
107
+ ```