Skip to content

CodeJason/php-word-template-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

php-word-template-processor

This is a copy of the Template Processor file used in Php Word. The main extra features here are the ability to add single and multiple pictures, as well as the ability to add to the header, main body and footer.

Simply rename the old file and place this file in the same directory.

Usage

Replace single search item with single picture.

$templateProcessor->setImg("search", [
  "src"=>"image1.jpg",
  "swh"=>"200"
]);

Replace single search item with multiple pictures.

$templateProcessor->setImages("search", [
  [
    "src"=>"image1.jpg",
    "swh"=>"200"
  ],
  [
    "src"=>"image2.jpg",
    "swh"=>"200"
  ]
]);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages