Yii2 extension of PHPOffice/PHPWord
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist sasha6806/yii2-phpword "*"
or add
"sasha6806/yii2-phpword": "*"
to the require section of your composer.json
file.
Once the extension is installed, simply use it in your code by :
<?= \sasha\AutoloadExample::widget(); ?>