jupitern/docx
最新稳定版本:1.1.1
Composer 安装命令:
composer require jupitern/docx
包简介
docx tools - template engine, merge docx files
README 文档
README
PHP Docx tolls.
- docx template system
- merge docx files on one file
- optionally add page break between merged files
Requirements
PHP 5.4 or higher.
Installation
Include jupitern/docx in your project, by adding it to your composer.json file.
{ "require": { "jupitern/docx": "1.*" } }
Usage
$dir = 'C:\\www\\docx\\'; // Docx template $docx = \Jupitern\Docx\Docx::instance() ->setTemplate($dir.'template.docx') ->setData(['{name}' => 'john doe', '{address}' => 'at the end of the road']) ->save($dir.'result.docx'); // Merge Docx files $docxMerge = \Jupitern\Docx\DocxMerge::instance() // add array of files to merge ->addFiles([$dir.'file1.docx', $dir.'file2.docx']) // output filepath and pagebreak param ->save($dir.'result.docx', true);
Contributing
- welcome to discuss a bugs, features and ideas.
License
jupitern/docx is release under the MIT license.
You are free to use, modify and distribute this software
统计信息
- 总下载量: 140.07k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 19
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 未知