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 yesterday

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 19% 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://www.gravatar.com/avatar/637429a0d59b04e7a198c6fdeead5633c4679db77de8c83444a880c6a86d8f46?d=identicon)[cheanizer](/maintainers/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

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)

PHPackages © 2026

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