[英]Google Calendar API vendor/autoload.php: failed to open stream
I'm working with Google Calendar and their PHP tutorial . 我正在使用Google Calendar及其PHP教程 。 I followed all the instructions to the letter however at the part where it says to run it from the console/command line I get this obvious error: 我遵循了这封信的所有说明,但是在从控制台/命令行运行该信的那部分,我得到了一个明显的错误:
Warning: require(D:\\htdocs\\test/vendor/autoload.php): failed to open stream: No such file or directory in D:\\htdocs\\test\\quickstart.php on line 4 警告:require(D:\\ htdocs \\ test / vendor / autoload.php):无法打开流:第4行的D:\\ htdocs \\ test \\ quickstart.php中没有此类文件或目录
There is no vendor/autoload.php
file in the tutorial nor on the Github repository . 本教程中和Github存储库中都没有vendor/autoload.php
文件。
Where do I find the autoload.php
file and why do they insist on requiring it but not providing it? 我在哪里可以找到autoload.php
文件,为什么他们坚持要求但不提供文件?
You need to run composer in the directory of your project. 您需要在项目目录中运行composer。 For eq : 对于eq:
cd D:\htdocs\test\
composer require google/apiclient:^2.0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.