PHPackages                             chris-tenday/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. chris-tenday/pdf-generator

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

chris-tenday/pdf-generator
==========================

Composant pour générer un pdf à partir d'un document word template.

v1.0.3(3y ago)017PHP

Since Jun 1Pushed 2y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

pdf-generate
============

[](#pdf-generate)

Composant pour générer un pdf à partir d'un document word template.

\#Example code:

use ChrisTenday\\PdfGenerate\\Pdf;

require\_once "vendor/autoload.php";

Path du document word modèle à partir duquel générer un pdf.
$temp=**DIR**.DIRECTORY\_SEPARATOR."template-mensuel.docx";

//Initilialisation de l'objet pdf
$pdf=new Pdf($temp);

//Path du dossier de destination où sera enregistré le document pdf généré.
$dest=**DIR**.DIRECTORY\_SEPARATOR."uploads";

$pdf-&gt;setDestinationFolder($dest); //set dossier de destination

$pdf-&gt;setData("populationTotale","1.000.000"); //Set data à remplacer dans le document word en key-value pair
$pdf-&gt;setData("province","Katanga");

//Créer un nouveau block
$block1=$pdf-&gt;newBlock("table"); $block1-&gt;setData("culture","Tenday"); //Set data à remplacer dans le block
$block1-&gt;setData("nbr",120); $block1-&gt;setData("superficie",300000); $block1-&gt;setData("production",200);

$block2=$pdf-&gt;newBlock("table"); $block2-&gt;setData("culture","Chris"); $block2-&gt;setData("nbr",500); $block2-&gt;setData("superficie",240000); $block2-&gt;setData("production",400);

$block3=$pdf-&gt;newBlock("table"); $block3-&gt;setData("culture","Mesa");

//Générer le document pdf
$pdf-&gt;generate();

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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.

###  Release Activity

Cadence

Every ~2 days

Total

3

Last Release

1168d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/39637487ea5c35e04b7096feedcb2816320115fba5cb43543611db34ffa2fe67?d=identicon)[Chris Tenday](/maintainers/Chris%20Tenday)

---

Top Contributors

[![chris-tenday](https://avatars.githubusercontent.com/u/96619436?v=4)](https://github.com/chris-tenday "chris-tenday (11 commits)")

### Embed Badge

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

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

###  Alternatives

[kimai/kimai

Kimai - Time Tracking

4.8k9.4k1](/packages/kimai-kimai)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k53](/packages/civicrm-civicrm-core)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.7k441.1k8](/packages/theodo-group-llphant)[abydahana/aksara

Aksara is a modern, developer-friendly framework and CMS built on CodeIgniter 4, featuring rapid CRUD development, modular architecture, smart routing, flexible access control, API integration, and an AI assistant to make content management faster and smarter.

1141.2k](/packages/abydahana-aksara)[novay/laravel-word-template

Package Laravel untuk melakukan penggantian kata pada file menggunakan template dokumen (.doc atau .docx) yang sudah disediakan.

5617.8k](/packages/novay-laravel-word-template)[nilgems/laravel-textract

A Laravel package to extract text from files like DOC, XL, Image, Pdf and more. I've developed this package by inspiring "npm textract".

196.0k](/packages/nilgems-laravel-textract)

PHPackages © 2026

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