https://github.com/inquid/yii-microsoft-word
Create documents using templates and Microsoft® Word
https://github.com/inquid/yii-microsoft-word
Last synced: 4 months ago
JSON representation
Create documents using templates and Microsoft® Word
- Host: GitHub
- URL: https://github.com/inquid/yii-microsoft-word
- Owner: inquid
- Created: 2019-02-14T05:25:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-14T05:58:19.000Z (over 6 years ago)
- Last Synced: 2024-12-29T14:37:06.177Z (5 months ago)
- Language: PHP
- Size: 159 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Yii Microsoft Word Template
===========================
Create documents using templates and Microsoft® WordInstallation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
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 :
```php
$executer = new \inquid\word\TemplateExecuter();
$template = $executer->execute([['name' , 'Luis Armando González'], ['email' , '[email protected]']]);
$executer->saveDocument($template, 'Default.docx');
```