PHPackages                             novay/laravel-word-template - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. novay/laravel-word-template

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

novay/laravel-word-template
===========================

Package Laravel untuk melakukan penggantian kata pada file menggunakan template dokumen (.doc atau .docx) yang sudah disediakan.

2.0.2(8mo ago)4815.1k↓28.1%20[1 PRs](https://github.com/novay/laravel-word-template/pulls)MITPHPPHP &gt;=8.1

Since Feb 13Pushed 8mo ago3 watchersCompare

[ Source](https://github.com/novay/laravel-word-template)[ Packagist](https://packagist.org/packages/novay/laravel-word-template)[ RSS](/packages/novay-laravel-word-template/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (6)Used By (0)

📄 Laravel Word Template
=======================

[](#-laravel-word-template)

[![Latest Version](https://camo.githubusercontent.com/c2bbbe38795c5973caaf5d3fcf6ba17e03eb4c75f99e8c57ae6c315150e6d4b0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f7661792f6c61726176656c2d776f72642d74656d706c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/novay/laravel-word-template)[![Total Downloads](https://camo.githubusercontent.com/8cfed0ad85a38e81464d9aa9cb71f31e0f8af847cfb05c473164aa3a38a64ecc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6f7661792f6c61726176656c2d776f72642d74656d706c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/novay/laravel-word-template)[![License](https://camo.githubusercontent.com/9872ce9165d9c5779c00a4ae3795f76381c8a7ede42b5e42cc0d9394f27de5c0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e6f7661792f6c61726176656c2d776f72642d74656d706c6174652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

**Laravel Word Template** is a Laravel package built on top of **[PHPWord](https://github.com/PHPOffice/PHPWord)** for creating, manipulating, and exporting Word/Office documents. It offers full support for **template replacement, looping, images, builder mode**, watermarks, merging, and even digital signatures.

[![Example](https://raw.githubusercontent.com/novay/laravel-word-template/refs/heads/master/examples/laravel-wordtemplate.png)](https://raw.githubusercontent.com/novay/laravel-word-template/refs/heads/master/examples/laravel-wordtemplate.png)

### 🚀 Installation

[](#-installation)

```
composer require novay/laravel-word-template
```

Publish the configuration:

```
php artisan vendor:publish --provider="Novay\Word\Providers\WordServiceProvider"
```

### ⚡ Basic Usage

[](#-basic-usage)

#### 1️⃣ Replace Value

[](#1️⃣-replace-value)

```
return Word::template(storage_path('app/templates/replace-values.docx'))
    ->setValue('nama', 'Novianto Rahmadi')
    ->setValue('app', 'Laravel WordTemplate')
    ->download('output.docx');
```

#### 2️⃣ Replace Images

[](#2️⃣-replace-images)

```
return Word::template(storage_path('app/templates/template.docx'))
    ->setImage('logo', public_path('logo.png'), [
        'width' => 120,
        'height'=> 120,
        'ratio' => true
    ])
    ->download('output.docx');
```

### 📚 Full Documentation

[](#-full-documentation)

For more comprehensive documentation, please visit: 👉

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance61

Regular maintenance activity

Popularity40

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 90.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~692 days

Total

5

Last Release

247d ago

Major Versions

v1.1 → 2.0.02025-09-13

PHP version history (2 changes)v1.0PHP &gt;=5.5.0

2.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/712577?v=4)[Novianto Rahmadi](/maintainers/novay)[@novay](https://github.com/novay)

---

Top Contributors

[![novay](https://avatars.githubusercontent.com/u/712577?v=4)](https://github.com/novay "novay (10 commits)")[![vm0993](https://avatars.githubusercontent.com/u/4952512?v=4)](https://github.com/vm0993 "vm0993 (1 commits)")

---

Tags

laravelexportdocworddocxrtf

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/novay-laravel-word-template/health.svg)

```
[![Health](https://phpackages.com/badges/novay-laravel-word-template/health.svg)](https://phpackages.com/packages/novay-laravel-word-template)
```

###  Alternatives

[nilgems/laravel-textract

A Laravel package to extract text from files like DOC, XL, Image, Pdf and more. I've developed this package by inspiring "npm textract".

195.2k](/packages/nilgems-laravel-textract)[aspose-cloud/aspose-words-cloud

Open, generate, edit, split, merge, compare and convert Word documents. Integrate Cloud API into your solutions to manipulate documents. Convert PDF to Word (DOC, DOCX, ODT, RTF and HTML) and in the opposite direction.

32157.4k](/packages/aspose-cloud-aspose-words-cloud)[phpnt/yii2-export

Yii2 It saves data in xls, csv, word, html, pdf files.

158.9k](/packages/phpnt-yii2-export)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
