Skip to content

Allows you to use PHP to search and replace within docx files

Notifications You must be signed in to change notification settings

chaslain/docx-replace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To replace text inside a docx, create an instance. The constructor is default.

Call open() and pass in the path of the file.

Then, call replace($search, $replace) as many times as necessary. Note it will only replace the first instance of something.

Call save() to update the docx file.


-- 2021-07-08 20:48 - ajohnston

-- with any questions, email [email protected]

About

Allows you to use PHP to search and replace within docx files

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages