定制 novay/laravel-word-template 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

novay/laravel-word-template

最新稳定版本:2.0.2

Composer 安装命令:

composer require novay/laravel-word-template

包简介

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

README 文档

README

Latest Version Total Downloads License

Laravel Word Template is a Laravel package built on top of 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

???? Installation

composer require novay/laravel-word-template

Publish the configuration:

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

⚡ Basic Usage

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

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

For more comprehensive documentation, please visit: ???? https://word.btekno.id

统计信息

  • 总下载量: 14.03k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 43
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 42
  • Watchers: 3
  • Forks: 19
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04