PHPackages                             chokri/pdf-classe - 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. chokri/pdf-classe

Abandoned → [chokri/pdfkit](/?search=chokri%2Fpdfkit)Library[PDF &amp; Document Generation](/categories/documents)

chokri/pdf-classe
=================

PDF tool kit

2.1.0(10mo ago)2193GPL-3.0-or-laterPHPPHP ^8.4

Since Nov 19Pushed 10mo agoCompare

[ Source](https://github.com/chokri/pdfkit)[ Packagist](https://packagist.org/packages/chokri/pdf-classe)[ RSS](/packages/chokri-pdf-classe/feed)WikiDiscussions master Synced 1mo ago

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

[![Latest Stable Version](https://camo.githubusercontent.com/bb6d6e134ff12b8e1db0f31a04965369a46eb07719d75482a36c10daa9410ed3/68747470733a2f2f706f7365722e707567782e6f72672f63686f6b72692f7064666b69742f762f737461626c652e737667)](https://packagist.org/packages/chokri/pdfkit)[![License](https://camo.githubusercontent.com/636de36543cbb2a897726ef37a16aced763f9552848896d935a22c2c5d6a62e6/68747470733a2f2f706f7365722e707567782e6f72672f63686f6b72692f7064666b69742f6c6963656e73652e737667)](https://packagist.org/packages/chokri/pdfkit)

PDFKit
======

[](#pdfkit)

A simple PHP library for making PDF files. Uses [setasign/fpdf](https://github.com/Setasign/FPDF) and works with PHP 8.4 or newer.

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

[](#installation)

Install with Composer:

```
composer require chokri/pdfkit
```

Basic Example
-------------

[](#basic-example)

```
require 'vendor/autoload.php';

use Chokri\PDF\Pdf;

$pdf = new Pdf();
$pdf->addTitlePage('My PDF Title', 'Subtitle', 'Author Name');
$pdf->addTable(['Col1', 'Col2'], [['A', 'B'], ['C', 'D']]);
$pdf->addImageCentered('logo.png', 80);
$pdf->addPageNumbering();
$pdf->Output('I', 'example.pdf');
```

Features
--------

[](#features)

- Easy to use
- PSR-4 autoloading
- PHP 8.4+ support
- GPL-3.0 license
- Write HTML with `WriteHTML()`
- Add tables and images
- Custom header and footer
- Unit tested with PHPUnit

License
-------

[](#license)

GPL-3.0-or-later. See [LICENCE](LICENCE).

Changelog
---------

[](#changelog)

See [CHANGELOG.md](CHANGELOG.md) for updates.

Author
------

[](#author)

Chokri Khalifa — [chokrikhalifa.com](http://chokrikhalifa.com)

###  Health Score

44

—

FairBetter than 91% of packages

Maintenance58

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 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 ~1940 days

Total

3

Last Release

308d ago

Major Versions

1.0 → 2.0.02025-07-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/da7dd04e1ab945b0cb495badf9dc8edaf2d72bce743460c1f8af6d8ba0dc299b?d=identicon)[chokri](/maintainers/chokri)

---

Top Contributors

[![chokri](https://avatars.githubusercontent.com/u/300118?v=4)](https://github.com/chokri "chokri (17 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/chokri-pdf-classe/health.svg)

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

###  Alternatives

[webklex/laravel-pdfmerger

Generic PDF merger for Laravel

1422.6M2](/packages/webklex-laravel-pdfmerger)[jurosh/pdf-merge

PHP PDF Merger

1522.2M4](/packages/jurosh-pdf-merge)[setasign/fpdi-protection

A FPDI compatible version of the FPDF\_Protection script.

324.3M2](/packages/setasign-fpdi-protection)[binarystash/pdf-watermarker

Watermark or stamp PDF documents

8260.6k](/packages/binarystash-pdf-watermarker)[tomsgu/pdf-merger

21473.9k23](/packages/tomsgu-pdf-merger)[filippo-toso/pdf-watermarker

Simple PDF Watermarker with Laravel support

1548.4k1](/packages/filippo-toso-pdf-watermarker)

PHPackages © 2026

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