質問編集履歴

4

変更

2018/08/31 06:09

投稿

aaayii
aaayii

スコア14

test CHANGED
File without changes
test CHANGED
@@ -78,7 +78,7 @@
78
78
 
79
79
  Using version ^3.5 for friendsofcake/cakepdf
80
80
 
81
- ./composer.json has been updated
81
+ ./composer.json has been created
82
82
 
83
83
  Loading composer repositories with package information
84
84
 
@@ -86,23 +86,19 @@
86
86
 
87
87
  Package operations: 7 installs, 0 updates, 0 removals
88
88
 
89
- As there is no 'unzip' command installed zip files are being unpacked using the PHP zip extension.
90
-
91
- This may cause invalid reports of corrupted archives. Installing 'unzip' may remediate them.
92
-
93
- - Installing psr/http-message (1.0.1): Loading from cache
89
+ - Installing psr/http-message (1.0.1): Downloading (100%)
94
-
90
+
95
- - Installing zendframework/zend-diactoros (1.8.5): Loading from cache
91
+ - Installing zendframework/zend-diactoros (1.8.5): Downloading (100%)
96
-
92
+
97
- - Installing psr/log (1.0.2): Loading from cache
93
+ - Installing psr/log (1.0.2): Downloading (100%)
98
-
94
+
99
- - Installing aura/intl (3.0.0): Loading from cache
95
+ - Installing aura/intl (3.0.0): Downloading (100%)
100
-
96
+
101
- - Installing cakephp/chronos (1.2.2): Loading from cache
97
+ - Installing cakephp/chronos (1.2.2): Downloading (100%)
102
-
98
+
103
- - Installing cakephp/cakephp (3.6.10): Loading from cache
99
+ - Installing cakephp/cakephp (3.6.10): Downloading (100%)
104
-
100
+
105
- - Installing friendsofcake/cakepdf (3.5.1): Loading from cache
101
+ - Installing friendsofcake/cakepdf (3.5.1): Downloading (100%)
106
102
 
107
103
  cakephp/cakephp suggests installing lib-ICU (The intl PHP library, to use Text::transliterate() or Text::slug())
108
104
 
@@ -118,8 +114,6 @@
118
114
 
119
115
 
120
116
 
121
-
122
-
123
117
  このように表示されました。
124
118
 
125
119
  vendor以下を確認しても追加されてません。

3

追記

2018/08/31 06:09

投稿

aaayii
aaayii

スコア14

test CHANGED
File without changes
test CHANGED
@@ -44,7 +44,35 @@
44
44
 
45
45
  既存のcomposer.json内に、「"friendsofcake/CakePdf": "^3.2"」を追加しました!
46
46
 
47
- その後SSHで接続し、
47
+ その後SSHで接続し、まず削除しました。
48
+
49
+ $composer remove friendsofcake/cakepdf
50
+
51
+  Loading composer repositories with package information
52
+
53
+  Updating dependencies (including require-dev)
54
+
55
+  Package operations: 0 installs, 0 updates, 7 removals
56
+
57
+ - Removing zendframework/zend-diactoros (1.8.5)
58
+
59
+ - Removing psr/log (1.0.2)
60
+
61
+ - Removing psr/http-message (1.0.1)
62
+
63
+ - Removing friendsofcake/cakepdf (3.5.1)
64
+
65
+ - Removing cakephp/chronos (1.2.2)
66
+
67
+ - Removing cakephp/cakephp (3.6.10)
68
+
69
+ - Removing aura/intl (3.0.0)
70
+
71
+  Generating autoload files
72
+
73
+
74
+
75
+ 次にインストールしました。
48
76
 
49
77
  $composer require friendsofcake/cakepdf を実行!
50
78
 
@@ -56,12 +84,42 @@
56
84
 
57
85
  Updating dependencies (including require-dev)
58
86
 
59
- Nothing to install or update
87
+ Package operations: 7 installs, 0 updates, 0 removals
88
+
89
+ As there is no 'unzip' command installed zip files are being unpacked using the PHP zip extension.
90
+
91
+ This may cause invalid reports of corrupted archives. Installing 'unzip' may remediate them.
92
+
93
+ - Installing psr/http-message (1.0.1): Loading from cache
94
+
95
+ - Installing zendframework/zend-diactoros (1.8.5): Loading from cache
96
+
97
+ - Installing psr/log (1.0.2): Loading from cache
98
+
99
+ - Installing aura/intl (3.0.0): Loading from cache
100
+
101
+ - Installing cakephp/chronos (1.2.2): Loading from cache
102
+
103
+ - Installing cakephp/cakephp (3.6.10): Loading from cache
104
+
105
+ - Installing friendsofcake/cakepdf (3.5.1): Loading from cache
106
+
107
+ cakephp/cakephp suggests installing lib-ICU (The intl PHP library, to use Text::transliterate() or Text::slug())
108
+
109
+ friendsofcake/cakepdf suggests installing dompdf/dompdf (If you wish to use the DomPdf engine)
110
+
111
+ friendsofcake/cakepdf suggests installing tecnickcom/tcpdf (If you wish to use the Tcpdf engine)
112
+
113
+ friendsofcake/cakepdf suggests installing mpdf/mpdf (If you wish to use the Mpdf engine)
114
+
115
+ Writing lock file
60
116
 
61
117
  Generating autoload files
62
118
 
63
119
 
64
120
 
121
+
122
+
65
123
  このように表示されました。
66
124
 
67
125
  vendor以下を確認しても追加されてません。
@@ -208,19 +266,7 @@
208
266
 
209
267
  "require": {
210
268
 
211
- "php": ">=5.5.9",
212
-
213
- "cakephp/cakephp": "3.3.*",
214
-
215
- "mobiledetect/mobiledetectlib": "2.*",
216
-
217
- "cakephp/migrations": "~1.0",
218
-
219
- "cakephp/plugin-installer": "*",
220
-
221
- "cakemanager/cakephp-utils": "dev-master",
222
-
223
- "friendsofcake/CakePdf": "^3.2"
269
+ "friendsofcake/CakePdf": "^3.5"
224
270
 
225
271
  },
226
272
 

2

追記

2018/08/31 05:57

投稿

aaayii
aaayii

スコア14

test CHANGED
File without changes
test CHANGED
@@ -36,6 +36,36 @@
36
36
 
37
37
 
38
38
 
39
+ ****☆追記☆****
40
+
41
+ 下記の通り実行しました。
42
+
43
+ 下にcomposer.jsonを追加記載しました。
44
+
45
+ 既存のcomposer.json内に、「"friendsofcake/CakePdf": "^3.2"」を追加しました!
46
+
47
+ その後SSHで接続し、
48
+
49
+ $composer require friendsofcake/cakepdf を実行!
50
+
51
+ Using version ^3.5 for friendsofcake/cakepdf
52
+
53
+ ./composer.json has been updated
54
+
55
+ Loading composer repositories with package information
56
+
57
+ Updating dependencies (including require-dev)
58
+
59
+ Nothing to install or update
60
+
61
+ Generating autoload files
62
+
63
+
64
+
65
+ このように表示されました。
66
+
67
+ vendor以下を確認しても追加されてません。
68
+
39
69
 
40
70
 
41
71
 

1

ソースの追加

2018/08/31 05:21

投稿

aaayii
aaayii

スコア14

test CHANGED
File without changes
test CHANGED
@@ -157,3 +157,109 @@
157
157
  form.target = '_blank';
158
158
 
159
159
  ```
160
+
161
+
162
+
163
+ composer.json
164
+
165
+ ```ここに言語を入力
166
+
167
+ {
168
+
169
+ "name": "cakephp/app",
170
+
171
+ "description": "CakePHP skeleton app",
172
+
173
+ "homepage": "http://cakephp.org",
174
+
175
+ "type": "project",
176
+
177
+ "license": "MIT",
178
+
179
+ "require": {
180
+
181
+ "php": ">=5.5.9",
182
+
183
+ "cakephp/cakephp": "3.3.*",
184
+
185
+ "mobiledetect/mobiledetectlib": "2.*",
186
+
187
+ "cakephp/migrations": "~1.0",
188
+
189
+ "cakephp/plugin-installer": "*",
190
+
191
+ "cakemanager/cakephp-utils": "dev-master",
192
+
193
+ "friendsofcake/CakePdf": "^3.2"
194
+
195
+ },
196
+
197
+ "require-dev": {
198
+
199
+ "psy/psysh": "@stable",
200
+
201
+ "cakephp/debug_kit": "~3.2",
202
+
203
+ "cakephp/bake": "~1.1"
204
+
205
+ },
206
+
207
+ "suggest": {
208
+
209
+ "markstory/asset_compress": "An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.",
210
+
211
+ "phpunit/phpunit": "Allows automated tests to be run without system-wide install.",
212
+
213
+ "cakephp/cakephp-codesniffer": "Allows to check the code against the coding standards used in CakePHP."
214
+
215
+ },
216
+
217
+ "autoload": {
218
+
219
+ "psr-4": {
220
+
221
+ "App\": "src"
222
+
223
+ }
224
+
225
+ },
226
+
227
+ "autoload-dev": {
228
+
229
+ "psr-4": {
230
+
231
+ "App\Test\": "tests",
232
+
233
+ "Cake\Test\": "./vendor/cakephp/cakephp/tests"
234
+
235
+ }
236
+
237
+ },
238
+
239
+ "scripts": {
240
+
241
+ "post-install-cmd": "App\Console\Installer::postInstall",
242
+
243
+ "post-create-project-cmd": "App\Console\Installer::postInstall",
244
+
245
+ "post-autoload-dump": "Cake\Composer\Installer\PluginInstaller::postAutoloadDump",
246
+
247
+ "check": [
248
+
249
+ "@test",
250
+
251
+ "@cs-check"
252
+
253
+ ],
254
+
255
+ "cs-check": "phpcs --colors -p --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests",
256
+
257
+ "cs-fix": "phpcbf --colors --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests",
258
+
259
+ "test": "phpunit --colors=always"
260
+
261
+ }
262
+
263
+ }
264
+
265
+ ```