2017 © Pedro Peláez
 

library docx-replacer

PHP extension that allow you replace text to text or text to image in DOCX file

image

irebega/docx-replacer

PHP extension that allow you replace text to text or text to image in DOCX file

  • Wednesday, April 11, 2018
  • by igorrebega
  • Repository
  • 1 Watchers
  • 3 Stars
  • 108 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 7 Versions
  • 69 % Grown

The README.md

PHP .docx replacer

Latest Version on Packagist ![Software License][ico-license] Total Downloads, (*1)

Extention is no longer supported.

Docx format has so much unconsistency in their xml files and I just can't predict every case. You still can use extension, but on your own risk., (*2)

Replace your variables to text or even to images in .docx files

Install

Require this package with composer using the following command:, (*3)

composer require irebega/docx-replacer

Text to text replace

This code will replace $search to $replace in $pathToDocx file, (*4)

$docx = new \IRebega\DocxReplacer\Docx($pathToDocx);

$docx->replaceText($search, $replace);

If you want search to be case insensitive use replaceTextInsensitive like:, (*5)

$docx = new \IRebega\DocxReplacer\Docx($pathToDocx);

$docx->replaceTextInsensitive($search, $replace);

Text to image replace

This code will replace text $search to image that are located in $path in $pathToDocx file, (*6)

$docx = new \IRebega\DocxReplacer\Docx($pathToDocx);

$docx->replaceTextToImage($search, $path);

License

PHP .docx replacer is open-sourced software licensed under the MIT license, (*7)

The Versions

11/04 2018

dev-master

9999999-dev

PHP extension that allow you replace text to text or text to image in DOCX file

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-zip *

 

by Igor Rebega

php docx replace

11/04 2018

v1.0.5

1.0.5.0

PHP extension that allow you replace text to text or text to image in DOCX file

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-zip *

 

by Igor Rebega

php docx replace

10/04 2018

v1.0.4

1.0.4.0

PHP extension that allow you replace text to text or text to image in DOCX file

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-zip *

 

by Igor Rebega

php docx replace

10/04 2018

1.0.3

1.0.3.0

PHP extension that allow you replace text to text or text to image in DOCX file

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-zip *

 

by Igor Rebega

php docx replace

10/04 2018

1.0.2

1.0.2.0

PHP extension that allow you replace text to text or text to image in DOCX file

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-zip *

 

by Igor Rebega

php docx replace

02/03 2018

1.0.1

1.0.1.0

PHP extension that allow you replace text to text or text to image in DOCX file

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-zip *

 

by Igor Rebega

php docx replace

19/01 2018

1.0.0

1.0.0.0

PHP extension that allow you replace text to text or text to image in DOCX file

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-zip *

 

by Igor Rebega

php docx replace