inquid / yii-microsoft-word
Create documents using templates and Microsoft® Word
Installs: 56
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- phpoffice/phpword: v0.16.*
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2024-11-29 04:30:42 UTC
README
Create documents using templates and Microsoft® Word
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist inquid/yii-microsoft-word "*"
or add
"inquid/yii-microsoft-word": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
$executer = new \inquid\word\TemplateExecuter(); $template = $executer->execute([['name' , 'Luis Armando González'], ['email' , 'contact@inquid.co']]); $executer->saveDocument($template, 'Default.docx');