老版本有sample文件 可以查看示例
{
"require": {
"phpoffice/phpword": "v0.13.*"
}
}
新版本没有sample文件
{
"require": {
"phpoffice/phpword": "v0.16.*"
}
}
用上述内容创建composer.json文件后可以直接
composer install
composer 直接使用(查看所有版本的phpoffice/phpword)
composer show --all phpoffice/phpword
安装指定版本的phpword
composer require phpoffice/phpword v0.15.0
如果已经安装完了v0.15再想安装v0.16,则
composer require phpoffice/phpword v0.16.0
<