承接 iternova/docxmerger 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

iternova/docxmerger

Composer 安装命令:

composer require iternova/docxmerger

包简介

DOCX Merger - Merge .docx files

README 文档

README

A simple library to merge DOCX files.

More info: ITERNOVA [https://www.iternova.net]

Requirements

  • PHP 7.0 or higher.

Installation

To install easily using composer (and packagist.org), complete your composer.json file with:

{
    "require": {
        "iternova/docxmerger": "dev-master"
    }
}

Usage

$absolute_path_directory = __DIR__.'/../../tmp/';
$array_input_files = [
    $absolute_path_directory . 'input_file_01.docx',
    $absolute_path_directory . 'input_file_02.docx',
    $absolute_path_directory . 'input_file_03.docx',
];
$array_page_breaks = [
    false,
    true,
    false,
];
$output_file = $absolute_path_directory .'output_file.docx';

$docx_merger = new \Iternova\DOCXMerger\DOCXMerger();
$docx_merger->add_files( $array_input_files, $array_page_breaks );
$docx_merger->save( $output_file);

License

This package is released under the MIT license. You are free to use, modify and distribute this software or any variant of it.

统计信息

  • 总下载量: 7.23k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-01-11