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

質問編集履歴

2

試したことを追記

2018/11/01 09:30

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -110,4 +110,28 @@
110
110
 
111
111
 
112
112
  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>]...
113
+ ```
114
+
115
+ 追記2
116
+ 上記の処理でできたvendorにgithubからダウンロードしたgoogle-api-php-clientを入れて以下のコードを実行しました。
117
+
118
+ ```php
119
+ <?php
120
+ require_once("/vendor/autoload.php");
121
+ session_start();
122
+
123
+ $OAUTH2_CLIENT_ID = "";
124
+ $OAUTH2_CLIENT_SECRET = "";
125
+
126
+ $client = new Google_Client();
127
+ $client->setClientId($OAUTH2_CLIENT_ID);
128
+ $client->setClientSecret($OAUTH2_CLIENT_SECRET);
129
+ ?>
130
+ ```
131
+
132
+ そうしたら以下のエラーが出ました。
133
+
134
+ ```ここに言語を入力
135
+
136
+ 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
113
137
  ```

1

試したことを追記

2018/11/01 09:30

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -18,4 +18,96 @@
18
18
  環境
19
19
  windows10 64bit
20
20
  Composer version: 1.7.2
21
- PHP version: 7.2.10
21
+ PHP version: 7.2.10
22
+
23
+ 追記
24
+ composer updateを実行したら以下のようになりました。
25
+ ```ここに言語を入力
26
+ Loading composer repositories with package information
27
+ Updating dependencies (including require-dev)
28
+ Package operations: 41 installs, 0 updates, 1 removal
29
+ - Removing abraham/twitteroauth (0.9.2)
30
+ - Installing symfony/polyfill-ctype (v1.10.0): Downloading (100%)
31
+ - Installing symfony/yaml (v3.4.17): Downloading (100%)
32
+ - Installing sebastian/version (1.0.6): Downloading (100%)
33
+ - Installing sebastian/global-state (1.1.1): Downloading (100%)
34
+ - Installing sebastian/recursion-context (1.0.5): Downloading (100%)
35
+ - Installing sebastian/exporter (1.2.2): Downloading (100%)
36
+ - Installing sebastian/environment (1.3.8): Downloading (100%)
37
+ - Installing sebastian/diff (1.4.3): Downloading (100%)
38
+ - Installing sebastian/comparator (1.2.4): Downloading (100%)
39
+ - Installing doctrine/instantiator (1.1.0): Downloading (100%)
40
+ - Installing phpunit/php-text-template (1.2.1): Downloading (100%)
41
+ - Installing phpunit/phpunit-mock-objects (2.3.8): Downloading (100%)
42
+ - Installing phpunit/php-timer (1.0.9): Downloading (100%)
43
+ - Installing phpunit/php-file-iterator (1.4.5): Downloading (100%)
44
+ - Installing phpunit/php-token-stream (1.4.12): Downloading (100%)
45
+ - Installing phpunit/php-code-coverage (2.2.4): Downloading (100%)
46
+ - Installing webmozart/assert (1.3.0): Downloading (100%)
47
+ - Installing phpdocumentor/reflection-common (1.0.1): Downloading (100%)
48
+ - Installing phpdocumentor/type-resolver (0.4.0): Downloading (100%)
49
+ - Installing phpdocumentor/reflection-docblock (4.3.0): Downloading (100%)
50
+ - Installing phpspec/prophecy (1.8.0): Downloading (100%)
51
+ - Installing phpunit/phpunit (4.8.36): Downloading (100%)
52
+ - Installing psr/cache (1.0.1): Downloading (100%)
53
+ - Installing psr/http-message (1.0.1): Downloading (100%)
54
+ - Installing guzzlehttp/psr7 (1.4.2): Downloading (100%)
55
+ - Installing guzzlehttp/promises (v1.3.1): Downloading (100%)
56
+ - Installing guzzlehttp/guzzle (6.3.3): Downloading (100%)
57
+ - Installing firebase/php-jwt (v5.0.0): Downloading (100%)
58
+ - Installing google/auth (v1.4.0): Downloading (100%)
59
+ - Installing google/apiclient-services (v0.74): Downloading (100%)
60
+ - Installing psr/log (1.0.2): Downloading (100%)
61
+ - Installing monolog/monolog (1.23.0): Downloading (100%)
62
+ - Installing phpseclib/phpseclib (2.0.11): Downloading (100%)
63
+ - Installing squizlabs/php_codesniffer (2.9.1): Downloading (100%)
64
+ - Installing symfony/polyfill-mbstring (v1.10.0): Downloading (100%)
65
+ - Installing symfony/dom-crawler (v2.8.46): Downloading (100%)
66
+ - Installing symfony/css-selector (v2.8.46): Downloading (100%)
67
+ - Installing league/flysystem (1.0.46): Downloading (100%)
68
+ - Installing cache/taggable-cache (0.4.3): Downloading (100%)
69
+ - Installing cache/adapter-common (0.3.3): Downloading (100%)
70
+ - Installing cache/filesystem-adapter (0.3.3): Downloading (100%)
71
+ symfony/yaml suggests installing symfony/console (For validating YAML files using the lint command)
72
+ sebastian/global-state suggests installing ext-uopz (*)
73
+ phpunit/phpunit-mock-objects suggests installing ext-soap (*)
74
+ phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
75
+ phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
76
+ monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
77
+ monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
78
+ monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
79
+ monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
80
+ monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
81
+ monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
82
+ monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
83
+ monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
84
+ monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
85
+ monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
86
+ monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)
87
+ phpseclib/phpseclib suggests installing ext-libsodium (SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.)
88
+ phpseclib/phpseclib suggests installing ext-mcrypt (Install the Mcrypt extension in order to speed up a few other cryptographic operations.)
89
+ phpseclib/phpseclib suggests installing ext-gmp (Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.)
90
+ league/flysystem suggests installing ext-fileinfo (Required for MimeType)
91
+ league/flysystem suggests installing ext-ftp (Allows you to use FTP server storage)
92
+ league/flysystem suggests installing league/flysystem-aws-s3-v2 (Allows you to use S3 storage with AWS SDK v2)
93
+ league/flysystem suggests installing league/flysystem-aws-s3-v3 (Allows you to use S3 storage with AWS SDK v3)
94
+ league/flysystem suggests installing league/flysystem-azure (Allows you to use Windows Azure Blob storage)
95
+ league/flysystem suggests installing league/flysystem-cached-adapter (Flysystem adapter decorator for metadata caching)
96
+ league/flysystem suggests installing league/flysystem-eventable-filesystem (Allows you to use EventableFilesystem)
97
+ league/flysystem suggests installing league/flysystem-rackspace (Allows you to use Rackspace Cloud Files)
98
+ league/flysystem suggests installing league/flysystem-sftp (Allows you to use SFTP server storage via phpseclib)
99
+ league/flysystem suggests installing league/flysystem-webdav (Allows you to use WebDAV storage)
100
+ league/flysystem suggests installing league/flysystem-ziparchive (Allows you to use ZipArchive adapter)
101
+ league/flysystem suggests installing spatie/flysystem-dropbox (Allows you to use Dropbox storage)
102
+ league/flysystem suggests installing srmklive/flysystem-dropbox-v2 (Allows you to use Dropbox storage for PHP 5 applications)
103
+ Writing lock file
104
+ Generating autoload files
105
+
106
+
107
+ [RuntimeException]
108
+ Could not scan for classes inside "src/Google/Service/" which does not appe
109
+ ar to be a file nor a folder
110
+
111
+
112
+ 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>]...
113
+ ```