質問編集履歴

2

試したことを追記

2018/11/01 09:30

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -223,3 +223,51 @@
223
223
  update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
224
224
 
225
225
  ```
226
+
227
+
228
+
229
+ 追記2
230
+
231
+ 上記の処理でできたvendorにgithubからダウンロードしたgoogle-api-php-clientを入れて以下のコードを実行しました。
232
+
233
+
234
+
235
+ ```php
236
+
237
+ <?php
238
+
239
+ require_once("/vendor/autoload.php");
240
+
241
+ session_start();
242
+
243
+
244
+
245
+ $OAUTH2_CLIENT_ID = "";
246
+
247
+ $OAUTH2_CLIENT_SECRET = "";
248
+
249
+
250
+
251
+ $client = new Google_Client();
252
+
253
+ $client->setClientId($OAUTH2_CLIENT_ID);
254
+
255
+ $client->setClientSecret($OAUTH2_CLIENT_SECRET);
256
+
257
+ ?>
258
+
259
+ ```
260
+
261
+
262
+
263
+ そうしたら以下のエラーが出ました。
264
+
265
+
266
+
267
+ ```ここに言語を入力
268
+
269
+
270
+
271
+ Fatal error: Uncaught Error: Class 'Google_Client' not found in C:\xampp\htdocs\TestPHP\test.php:8 Stack trace: #0 {main} thrown in C:\test.php on line 8
272
+
273
+ ```

1

試したことを追記

2018/11/01 09:30

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -39,3 +39,187 @@
39
39
  Composer version: 1.7.2
40
40
 
41
41
  PHP version: 7.2.10
42
+
43
+
44
+
45
+ 追記
46
+
47
+ composer updateを実行したら以下のようになりました。
48
+
49
+ ```ここに言語を入力
50
+
51
+ Loading composer repositories with package information
52
+
53
+ Updating dependencies (including require-dev)
54
+
55
+ Package operations: 41 installs, 0 updates, 1 removal
56
+
57
+ - Removing abraham/twitteroauth (0.9.2)
58
+
59
+ - Installing symfony/polyfill-ctype (v1.10.0): Downloading (100%)
60
+
61
+ - Installing symfony/yaml (v3.4.17): Downloading (100%)
62
+
63
+ - Installing sebastian/version (1.0.6): Downloading (100%)
64
+
65
+ - Installing sebastian/global-state (1.1.1): Downloading (100%)
66
+
67
+ - Installing sebastian/recursion-context (1.0.5): Downloading (100%)
68
+
69
+ - Installing sebastian/exporter (1.2.2): Downloading (100%)
70
+
71
+ - Installing sebastian/environment (1.3.8): Downloading (100%)
72
+
73
+ - Installing sebastian/diff (1.4.3): Downloading (100%)
74
+
75
+ - Installing sebastian/comparator (1.2.4): Downloading (100%)
76
+
77
+ - Installing doctrine/instantiator (1.1.0): Downloading (100%)
78
+
79
+ - Installing phpunit/php-text-template (1.2.1): Downloading (100%)
80
+
81
+ - Installing phpunit/phpunit-mock-objects (2.3.8): Downloading (100%)
82
+
83
+ - Installing phpunit/php-timer (1.0.9): Downloading (100%)
84
+
85
+ - Installing phpunit/php-file-iterator (1.4.5): Downloading (100%)
86
+
87
+ - Installing phpunit/php-token-stream (1.4.12): Downloading (100%)
88
+
89
+ - Installing phpunit/php-code-coverage (2.2.4): Downloading (100%)
90
+
91
+ - Installing webmozart/assert (1.3.0): Downloading (100%)
92
+
93
+ - Installing phpdocumentor/reflection-common (1.0.1): Downloading (100%)
94
+
95
+ - Installing phpdocumentor/type-resolver (0.4.0): Downloading (100%)
96
+
97
+ - Installing phpdocumentor/reflection-docblock (4.3.0): Downloading (100%)
98
+
99
+ - Installing phpspec/prophecy (1.8.0): Downloading (100%)
100
+
101
+ - Installing phpunit/phpunit (4.8.36): Downloading (100%)
102
+
103
+ - Installing psr/cache (1.0.1): Downloading (100%)
104
+
105
+ - Installing psr/http-message (1.0.1): Downloading (100%)
106
+
107
+ - Installing guzzlehttp/psr7 (1.4.2): Downloading (100%)
108
+
109
+ - Installing guzzlehttp/promises (v1.3.1): Downloading (100%)
110
+
111
+ - Installing guzzlehttp/guzzle (6.3.3): Downloading (100%)
112
+
113
+ - Installing firebase/php-jwt (v5.0.0): Downloading (100%)
114
+
115
+ - Installing google/auth (v1.4.0): Downloading (100%)
116
+
117
+ - Installing google/apiclient-services (v0.74): Downloading (100%)
118
+
119
+ - Installing psr/log (1.0.2): Downloading (100%)
120
+
121
+ - Installing monolog/monolog (1.23.0): Downloading (100%)
122
+
123
+ - Installing phpseclib/phpseclib (2.0.11): Downloading (100%)
124
+
125
+ - Installing squizlabs/php_codesniffer (2.9.1): Downloading (100%)
126
+
127
+ - Installing symfony/polyfill-mbstring (v1.10.0): Downloading (100%)
128
+
129
+ - Installing symfony/dom-crawler (v2.8.46): Downloading (100%)
130
+
131
+ - Installing symfony/css-selector (v2.8.46): Downloading (100%)
132
+
133
+ - Installing league/flysystem (1.0.46): Downloading (100%)
134
+
135
+ - Installing cache/taggable-cache (0.4.3): Downloading (100%)
136
+
137
+ - Installing cache/adapter-common (0.3.3): Downloading (100%)
138
+
139
+ - Installing cache/filesystem-adapter (0.3.3): Downloading (100%)
140
+
141
+ symfony/yaml suggests installing symfony/console (For validating YAML files using the lint command)
142
+
143
+ sebastian/global-state suggests installing ext-uopz (*)
144
+
145
+ phpunit/phpunit-mock-objects suggests installing ext-soap (*)
146
+
147
+ phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
148
+
149
+ phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
150
+
151
+ monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
152
+
153
+ monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
154
+
155
+ monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
156
+
157
+ monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
158
+
159
+ monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
160
+
161
+ monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
162
+
163
+ monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
164
+
165
+ monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
166
+
167
+ monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
168
+
169
+ monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
170
+
171
+ monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)
172
+
173
+ phpseclib/phpseclib suggests installing ext-libsodium (SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.)
174
+
175
+ phpseclib/phpseclib suggests installing ext-mcrypt (Install the Mcrypt extension in order to speed up a few other cryptographic operations.)
176
+
177
+ phpseclib/phpseclib suggests installing ext-gmp (Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.)
178
+
179
+ league/flysystem suggests installing ext-fileinfo (Required for MimeType)
180
+
181
+ league/flysystem suggests installing ext-ftp (Allows you to use FTP server storage)
182
+
183
+ league/flysystem suggests installing league/flysystem-aws-s3-v2 (Allows you to use S3 storage with AWS SDK v2)
184
+
185
+ league/flysystem suggests installing league/flysystem-aws-s3-v3 (Allows you to use S3 storage with AWS SDK v3)
186
+
187
+ league/flysystem suggests installing league/flysystem-azure (Allows you to use Windows Azure Blob storage)
188
+
189
+ league/flysystem suggests installing league/flysystem-cached-adapter (Flysystem adapter decorator for metadata caching)
190
+
191
+ league/flysystem suggests installing league/flysystem-eventable-filesystem (Allows you to use EventableFilesystem)
192
+
193
+ league/flysystem suggests installing league/flysystem-rackspace (Allows you to use Rackspace Cloud Files)
194
+
195
+ league/flysystem suggests installing league/flysystem-sftp (Allows you to use SFTP server storage via phpseclib)
196
+
197
+ league/flysystem suggests installing league/flysystem-webdav (Allows you to use WebDAV storage)
198
+
199
+ league/flysystem suggests installing league/flysystem-ziparchive (Allows you to use ZipArchive adapter)
200
+
201
+ league/flysystem suggests installing spatie/flysystem-dropbox (Allows you to use Dropbox storage)
202
+
203
+ league/flysystem suggests installing srmklive/flysystem-dropbox-v2 (Allows you to use Dropbox storage for PHP 5 applications)
204
+
205
+ Writing lock file
206
+
207
+ Generating autoload files
208
+
209
+
210
+
211
+
212
+
213
+ [RuntimeException]
214
+
215
+ Could not scan for classes inside "src/Google/Service/" which does not appe
216
+
217
+ ar to be a file nor a folder
218
+
219
+
220
+
221
+
222
+
223
+ update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
224
+
225
+ ```