2017 © Pedro Peláez
 

library docx

docx tools - template engine, merge docx files

image

jupitern/docx

docx tools - template engine, merge docx files

  • Friday, December 16, 2016
  • by jupitern
  • Repository
  • 2 Watchers
  • 5 Stars
  • 2,308 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 9 % Grown

The README.md

jupitern/docx

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., (*1)

Installation

Include jupitern/docx in your project, by adding it to your composer.json file., (*2)

{
    "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., (*3)

You are free to use, modify and distribute this software, (*4)

The Versions

16/12 2016

dev-master

9999999-dev https://github.com/jupitern/docx

docx tools - template engine, merge docx files

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Nuno Chaves

php docx docx template docx merge

16/12 2016

1.0.2

1.0.2.0 https://github.com/jupitern/docx

docx tools - template engine, merge docx files

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Nuno Chaves

php docx docx template docx merge

17/02 2016

1.0.1

1.0.1.0 https://github.com/jupitern/docx

docx tools - template engine, merge docx files

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Nuno Chaves

php docx docx template docx merge

15/02 2016

1.0.0

1.0.0.0 https://github.com/jupitern/docx

docx tools - template engine, merge docx files

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Nuno Chaves

php docx docx template docx merge

15/02 2016

1.0

1.0.0.0 https://github.com/jupitern/docx

php docx file merge

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Nuno Chaves

php docx docx template docx merge