ruvents/office-tools

This package is abandoned and no longer maintained. No replacement package was suggested.

RUVENTS PHP Office Tools

1.0.0 2017-07-10 18:28 UTC

This package is not auto-updated.

Last update: 2020-08-18 03:07:11 UTC


README

Installation

$ composer require ruvents/office-tools

Usage

.docx editor

<?php

use Ruvents\OfficeTools\Editor\DocxEditor;

(new DocxEditor('original.docx'))
    ->replace([
        '__first_name__' => 'Ivan',
        '__last_name__' => 'Ivanov',
    ])
    ->saveTo('target.docx', \ZipArchive::OVERWRITE);