Download the PHP package imal-h/pdf-box without Composer

On this page you can find all versions of the php package imal-h/pdf-box. 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?
imal-h/pdf-box
Rate from 1 - 5
Rated 4.50 based on 2 reviews

Informations about the package pdf-box

Try out before you actually use it

PDFLib v3.1

Issues Forks

The most advanced, driver-based PDF manipulation library for PHP.

PDFLib v3.1 is the mature, stable release of the new driver-based architecture. It allows you to switch between powerful backends like Ghostscript, PDFtk, OpenSSL, and Tesseract for different tasks, all under a single, beautiful fluent API.

👉 Read the Documentation


🛡️ Stability Guarantee (v4.0 Ready)

We take backward compatibility seriously.

The v3.1 architecture introduces a strict separation between the API (Facade) and the Execution Logic (Drivers).

🚀 What's New in v3.1?

📦 Requirements

Quick Start: Run ./bin/install-dependencies to automatically install these tools.

👉 See Installation Guide for detailed setup instructions on macOS, Ubuntu, and Windows.

🔧 Installation

✨ Features

Feature Description Driver
HTML to PDF Generate PDF from HTML/CSS Chrome
Digital Sign Sign PDFs with X.509 Certs OpenSSL
OCR Extract text from PDF/Images Tesseract
Redact Blackout sensitive text Ghostscript
Fill Forms Fill AcroForms (FDF) PDFtk
Inspect Forms Get Field Names PDFtk
Convert PDF to Images (PNG/JPG) Ghostscript
Merge Combine multiple PDFs Ghostscript
Split Extract pages or ranges Ghostscript
Compress Optimize PDF file size Ghostscript
Encrypt Password protection and permissions Ghostscript
Watermark Overlay text on pages Ghostscript
Rotation Rotate pages 90/180/270° Ghostscript
Metadata Edit Title, Author, Keywords Ghostscript
Flatten Burn forms into content Ghostscript

📖 Usage

HTML to PDF (New in v3.0)

Generate PDFs from HTML content or URLs using Chrome Headless.

Digital Signatures (New in v3.0)

Digitally sign PDFs using OpenSSL (requires tecnickcom/tcpdf).

Note: If you use a self-signed certificate (like in testing), PDF viewers will show "Signature Validity Unknown". For a green "Trusted" checkmark, use a certificate issued by a recognized Certificate Authority (CA) or explicitly trust your self-signed certificate in the viewer's settings.

Laravel Integration

Publish the config file:

Use the Facade in your controllers:

OCR (New in v3.1)

Extract text from scanned PDFs or images.

Redaction (New in v3.1)

Permanently remove sensitive text.

Interactive Forms

Fill PDF forms programmatically using pdftk.

The Modern Way (Fluent API)

The Legacy Way (v2.x Facade)

Existing code continues to work without changes, but is marked as deprecated.

Example: Advanced Chain

(Note: Current driver operations like encrypt, rotate, and watermark are immediate and require a destination path. Fully stateful chaining for these methods is planned for v3.1)

🔮 Roadmap

Want to see what's coming next (v3.1+)? Check out our Roadmap.

🤝 Contributing

We welcome contributions! Please see CONTRIBUTING for details on our new coding standards (Pint, PHPStan) and architecture.

📄 License

The MIT License (MIT). Please see License File.


Initiative of Treinetic (Pvt) Ltd.


All versions of pdf-box with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-fileinfo Version *
symfony/process Version ^6.4 || ^7.0
tecnickcom/tcpdf Version ^6.10
setasign/fpdi Version ^2.6
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 imal-h/pdf-box contains the following files

Loading the files please wait ...