PHPackages                             racklin/pdf-generator - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. racklin/pdf-generator

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

racklin/pdf-generator
=====================

simple pdf generator for laravel 5

31125PHP

Since Sep 1Pushed 8y ago2 watchersCompare

[ Source](https://github.com/racklin/pdf-generator)[ Packagist](https://packagist.org/packages/racklin/pdf-generator)[ RSS](/packages/racklin-pdf-generator/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Simple PDF Generator for Laravel
================================

[](#simple-pdf-generator-for-laravel)

Simple PDF Generator for Laravel using tcpdf library.

This package using json as template and you can pass php array as data to generate PDF.

It is useful to generate PDF for printing to preprint paper, ex `Invoice`.

Installation
============

[](#installation)

```
{
    "require": {
        "racklin/pdf-generator": "dev-master"
    }
}
```

Next, add the service provider to `config/app.php`.

```
'providers' => [
    //...
    Racklin\PdfGenerator\ServiceProvider::class,
]

//...

'aliases' => [
	//...
	'PDFGen' => Racklin\PdfGenerator\Facades\PdfGenerator::class
]
```

Example
=======

[](#example)

```
$pdf = new PdfGenerator();

$pdf->generate('example_01.json', ["name"=>"rack", "cname"=>"阿土伯"], '/tmp/example.pdf', 'F');

```

Laravel Facade
--------------

[](#laravel-facade)

```
PDFGen::generate('example_01.json', ["name"=>"rack", "cname"=>"阿土伯"], '/tmp/example.pdf', 'F');

```

Laravel version
---------------

[](#laravel-version)

Current package version works for Laravel 5+.

License
-------

[](#license)

MIT:

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/98798029ea572caf2d23d4fe81ad2a82ffdbfa86393e267f6bedaf2cc705f2d9?d=identicon)[racklin](/maintainers/racklin)

---

Top Contributors

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

---

Tags

laravellaravel-packagepdftcpdf

### Embed Badge

![Health badge](/badges/racklin-pdf-generator/health.svg)

```
[![Health](https://phpackages.com/badges/racklin-pdf-generator/health.svg)](https://phpackages.com/packages/racklin-pdf-generator)
```

###  Alternatives

[42coders/document-templates

Document template management package.

19940.0k](/packages/42coders-document-templates)[qipsius/tcpdf-bundle

A bundle to easily integrate TCPDF into Symfony

23749.5k](/packages/qipsius-tcpdf-bundle)[macopedia/magmi2

Magento Mass Importer 'Magmi' for Magento 2

11615.7k](/packages/macopedia-magmi2)[tarfin-labs/easy-pdf

Makes pdf processing easy.

1719.4k](/packages/tarfin-labs-easy-pdf)[akeneo-labs/excel-connector-bundle

Akeneo PIM Excel connector bundle

166.4k](/packages/akeneo-labs-excel-connector-bundle)

PHPackages © 2026

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