PHPackages                             cheanizer/laravel-doc-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. [Templating &amp; Views](/categories/templating)
4. /
5. cheanizer/laravel-doc-template

ActiveLibrary[Templating &amp; Views](/categories/templating)

cheanizer/laravel-doc-template
==============================

Library for templating like mail merge for PHP with RTF file.

529PHP

Since Jul 12Pushed 6y agoCompare

[ Source](https://github.com/cheanizer/laravel-doc-template)[ Packagist](https://packagist.org/packages/cheanizer/laravel-doc-template)[ RSS](/packages/cheanizer-laravel-doc-template/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Description
===========

[](#description)

DocTemplate is a Laravel library for generate doc file using .rtf file easily. Simply add .rtf file from msword and use it for template like we use blade template.

The main feature is replacing string using .rtf file.

Installation
------------

[](#installation)

use Composer to install DocTemplate

```
composer require cheanizer/laravel-doc-template
```

dont forget to register package to L4 users.

```
 'providers' => [
        ...
        Cheanizer\DocTemplate\DocTemplateServiceProvider::class,
        ...
]
```

Usage
-----

[](#usage)

```
DocTemplate::template(storage_path('app/public/template.rtf'))
            ->with(['total' => '80.000.000'])
            ->save(storage_path('testing-' . time() . '.doc'));
```

Todo
----

[](#todo)

- Add direct download with header.
- Add iteration functionality inside the template.

Credit
------

[](#credit)

This package is inpired by another same functionality library [laravel-word-template](https://github.com/novay/laravel-word-template)

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/916323?v=4)[Adhi Setyawan](/maintainers/cheanizer)[@cheanizer](https://github.com/cheanizer)

---

Top Contributors

[![cheanizer](https://avatars.githubusercontent.com/u/916323?v=4)](https://github.com/cheanizer "cheanizer (5 commits)")

### Embed Badge

![Health badge](/badges/cheanizer-laravel-doc-template/health.svg)

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.0k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

281.8k](/packages/webkinder-sproutset)

PHPackages © 2026

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