Download the PHP package dskripchenko/php-pdf without Composer

On this page you can find all versions of the php package dskripchenko/php-pdf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-pdf

dskripchenko/php-pdf

Pure-PHP, MIT-licensed PDF generator. A drop-in alternative for mpdf/mpdf (GPL-2.0) — no licensing friction for OEM, on-premise installers, or proprietary bundles.

Packagist

Languages: Deutsch


Contents


Why this library

Licensing. MIT is the most permissive PHP license — use the code anywhere, including closed-source products. Compare with the main PHP PDF stack:

Library License OEM / proprietary bundle
dskripchenko/php-pdf MIT ✅ no friction
mpdf/mpdf GPL-2.0-only ❌ requires GPL bundle or commercial license
tecnickcom/tcpdf LGPL-2.1+ ⚠️ static-linking nuances
dompdf/dompdf LGPL-2.1 ⚠️ same as tcpdf
setasign/fpdf re-licensable ✅ but extras are proprietary

Engineering.


Installation

PHP 8.2 or later. Required extensions: mbstring, zlib, dom. Add openssl for AES encryption or PKCS#7 signing.


Quick start

HTML → PDF

Programmatic builder

Low-level emission


Feature highlights

Input

Layout and typography

Fonts

Barcodes

Charts

Interactive

Security and conformance

A complete usage walkthrough is in docs/en/USAGE.md.


Documentation


Performance

Median of 5 isolated subprocess runs on macOS 25 / PHP 8.4. Full methodology and reproducer in docs/en/BENCHMARKS.md.

Scenario dskripchenko/php-pdf mpdf tcpdf dompdf FPDF
HTML → PDF article (~5 pages) 10.8 ms 61.1 ms 36.1 ms 46.9 ms n/a
100-page invoice (50 rows/page) 518 ms 2367 ms 1349 ms 8891 ms 26 ms
Image grid (20 pages × 4) 6.4 ms 35.9 ms 15.3 ms 30.4 ms 1.0 ms
Hello world (1 page) 4.6 ms 29.8 ms 14.8 ms 12.0 ms 0.9 ms

FPDF wins on the simplest scenarios (no HTML, no wrapping, no table flow), but it cannot generate HTML→PDF and lacks UTF-8, charts, barcodes, forms, encryption, signing.


Requirements


Testing

1977 tests, ~119k assertions, all passing on PHP 8.2 / 8.3 / 8.4.


License

MIT — see LICENSE.

Copyright © 2026 Denis Skripchenko.


All versions of php-pdf with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-mbstring Version *
ext-zlib Version *
ext-dom Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dskripchenko/php-pdf contains the following files

Loading the files please wait ...