novay/laravel-word-template 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱: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
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固