PHPackages                             kduma/bulk-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. kduma/bulk-generator

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

kduma/bulk-generator
====================

Bulk Document Generator

3181PHP

Since Mar 21Pushed 1y agoCompare

[ Source](https://github.com/kduma-OSS/PHP-bulk-generator)[ Packagist](https://packagist.org/packages/kduma/bulk-generator)[ RSS](/packages/kduma-bulk-generator/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Bulk Document Generator
=======================

[](#bulk-document-generator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3dcee45372211cc1e3d3ad2f9c6f0d2c62872cbb375c1dfd0159eae8448e7f6e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b64756d612f62756c6b2d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kduma/bulk-generator)[![Build Status](https://camo.githubusercontent.com/839be9e28e544f41b97c3402c1fea34ead3ab873deda5621a903e94011a1c886/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6b64756d612f62756c6b2d67656e657261746f722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/kduma/bulk-generator)[![Quality Score](https://camo.githubusercontent.com/6f37796a8a391303f6b0dff9acdc1849b5b0cd0101841b7f1b23717e98d31372/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6b64756d612f62756c6b2d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/kduma/bulk-generator)[![Total Downloads](https://camo.githubusercontent.com/23c184bf68f278d15fdbde9d390697862aeb50a2726536ec9d0edb8646680af9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b64756d612f62756c6b2d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kduma/bulk-generator)

Bulk Document Generator

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

[](#installation)

You can install the package via composer:

```
composer require kduma/bulk-generator
```

Usage
-----

[](#usage)

```
use Kduma\BulkGenerator\ContentGenerators\SimpleTemplateWithPlaceholdersContentGenerator;
use Kduma\BulkGenerator\DataSources\CsvWithHeadersDataSource;
use Kduma\BulkGenerator\PdfGenerators\MpdfGenerator;
use Kduma\BulkGenerator\PageOptions\PageMargins;
use Kduma\BulkGenerator\PageOptions\PageSize;
use Kduma\BulkGenerator\BulkGenerator;

$dataSource = new CsvWithHeadersDataSource('data.csv');

$pdfGenerator = new MpdfGenerator(
    PageSize::fromName('A6', true),
    PageMargins::makeByAxis(5, 5)
);

$generator = (new BulkGenerator($dataSource, $pdfGenerator))
    ->setFrontTemplate('front_template.pdf')
    ->setFrontContentGenerator(new SimpleTemplateWithPlaceholdersContentGenerator('Hello {name}!'));

$generator->generate('output.pdf');
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Krystian Duma](https://github.com/kduma)
- [All Contributors](../../contributors)

License
-------

[](#license)

The GNU GPLv3. Please see [License File](LICENSE.md) for more information.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

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/d09451622719c7efce1a7971b8e5a875859504882ba2b8c279d1015a99e8f12c?d=identicon)[kduma](/maintainers/kduma)

---

Top Contributors

[![kduma](https://avatars.githubusercontent.com/u/1062582?v=4)](https://github.com/kduma "kduma (31 commits)")

---

Tags

pdfphp

### Embed Badge

![Health badge](/badges/kduma-bulk-generator/health.svg)

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

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.3k](/packages/phpoffice-phpspreadsheet)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.1k57.6M131](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)

PHPackages © 2026

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