Skip to content

mctekk/phalcon-word-keys-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhalconDocs

Library for fast handling of template with phpword

Requirements

  • PHP >= 5.3.9
  • Phalcon >= 2.0.0

Installing via Composer

Install composer in a common location or in your project:

curl -s http://getcomposer.org/installer | php

Create the composer.json file as follows:

{
    "require": {
        "Mctekk/PhalconDocs":"dev-master"
    }
}

Usage

TemplateProcessor

<?php
	$model = YorModels::findFirst(1);
	$path = '/path/to/you/template/';
	$docs = new PhalconDocs\TemplateProcessor($path . "file.docx", $model);
    $docs->saveAs($path . "newfile.docx");

About

Library for fast handling of template with phpword

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages