2017 © Pedro Peláez
 

library docx-template

Docx Template

image

alshabalin/docx-template

Docx Template

  • Friday, May 5, 2017
  • by Alshabalin
  • Repository
  • 0 Watchers
  • 0 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Docx-Template

Allows convert any docx document to template, using variable, like {this}., (*1)

Install the package

composer require alshabalin/docx-template

How to use

<?php

require 'vendor/autoload.php';

use Alshabalin\DocxTemplate\DocxTemplate as DocxTemplate;

$data = [
  'key' => 'value',
  'name' => 'John',
  'lastname' => 'Doe',
  'city' => 'London',
];

$template = new DocxTemplate();

$template->open('document.docx')
    ->setData($data)
    ->save('result.docx');

You may want to remove any missing variables from your template by passing true as the second param to setData method:, (*2)

$template->setData($data, true);

The Versions

05/05 2017

dev-master

9999999-dev

Docx Template

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-zip *

 

by Alex Shabalin

template docx

05/05 2017

v1.0.4

1.0.4.0

Docx Template

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-zip *

 

by Alex Shabalin

template docx

05/05 2017

v1.0.1

1.0.1.0

Docx Template

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-zip *

 

by Alex Shabalin

template docx

05/05 2017

v1.0.2

1.0.2.0

Docx Template

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-zip *

 

by Alex Shabalin

template docx

05/05 2017

v1.0.3

1.0.3.0

Docx Template

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-zip *

 

by Alex Shabalin

template docx

05/05 2017

v1.0

1.0.0.0

Docx Template

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-zip *

 

by Alex Shabalin

template docx