在PHPWord/bootstrap.php
中:
$vendorDirPath = realpath(__DIR__ . '/vendor');
if (file_exists($vendorDirPath . '/autoload.php')) {
require $vendorDirPath . '/autoload.php';
} else {
throw new Exception(
sprintf(
'Could not find file \'%s\'. It is generated by Composer. Use \'install --prefer-source\' or \'update --prefer-source\' Composer commands to move forward.',
$vendorDirPath . '/autoload.php'
)
);
}
但在这里:https://github.com/PHPOffice/...
并没有看到vendor的文件夹?
这是怎么回事?
composer install一下应该就会生成。
没用使用composer包管理就没有vendor。