Download the PHP package novay/laravel-word-template without Composer
On this page you can find all versions of the php package novay/laravel-word-template. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-word-template
Laravel Word Template
- About
- Requirements
- Installation Instructions
- Panduan Penggunaan
- Basic Usage
- License
About
Laravel Package to perform word replacement on files using document templates (.rtf
) that have been provided.
[ID] Package Laravel untuk melakukan penggantian kata pada file menggunakan template dokumen (.rtf
) yang sudah disediakan.
Requirements
Installation Instructions
-
From your projects root folder in terminal run:
-
Register the package
-
Laravel 5.5 and up Uses package auto discovery feature, no need to edit the
config/app.php
file. - Laravel 5.4 and below
Register the package with laravel in
config/app.php
underproviders
andaliases
with the following:
-
Panduan Penggunaan [ID]
-
Siapkan template yang ingin Anda gunakan, pastikan template berupa file dokumen. Sebagai contoh anda bisa menggunakan contoh ini. Jika tidak langsung terunduh secara otomatis, kamu bisa tekan
Ctrl+S
untuk menyimpan secara manual dengan format.rtf
. Setelah terdownload cukup letakkan file tersebut di folderpublic
atau dimanapun anda mau. - Silahkan bermain-main dengan
facade
ini:
Method ini membutuhkan 3 parameter didalam penggunaannya:
- Lokasi file dokumen yang menjadi template Anda
Contoh: public_path('template/document.rtf')
- Kumpulan kata-kata awal beserta kata penggantinya dalam bentuk array. Lihat contoh
- Tentukan nama file yang diinginkan ketika file diunduh.
Contoh. file.doc
Contoh
Agar cepat, salin baris berikut ke dalam fileroutes.php
Anda :
Basic Usage [EN]
-
You need to prepare the template document that you want, for example you can download this file. If it is not downloading automatically, you can just press
Ctrl+S
to save it manually as.rtf
file. - You can use this
facade
to play with this :
This method needs you to specify 3 parameters in it:
- Location of your document template file
Ex. public_path('template/document.rtf')
- The initial words along with their replacement in the arrays form. See example
- Specifies the file name when the file is downloaded
Ex. file.doc
Example
Copy this file in your routes directly for the instance :
License
Laravel Word Template is licensed under the MIT license. Enjoy!