Search by

pieceofcake2 / cakepdf

ttsurupieceofcake2

CakePHP 2 plugin for converting HTML to PDF with Dompdf, mPDF, TCPDF or wkhtmltopdf

Package info

github.com/pieceofcake2/cakepdf

Type:cakephp-plugin

pkg:composer/pieceofcake2/cakepdf

Statistics

Installs: 6

Dependents: 0

Suggesters: 0

Stars: 0

v1.0.8 2026-10-16 08:34 UTC

README

GitHub License Packagist Version PHP CakePHP PHPStan CI Codecov

CakePdf converts HTML to PDF with Dompdf, mPDF, TCPDF or wkhtmltopdf. It renders controller actions as PDF with PdfView and creates PDF files for email attachments or file storage. This is a fork of FriendsOfCake/CakePdf 1.x for pieceofcake2/cakephp.

Documentation

The Markdown documentation is also included in the Composer package, in the plugin's directory: plugins/CakePdf/docs/README.md (the location depends on your installer-paths). Install the package with --dev if you only need it for development.

Requirements

  • PHP 8.0+
  • pieceofcake2/cakephp 2.12+
  • One of dompdf/dompdf, mpdf/mpdf, tecnickcom/tcpdf or the wkhtmltopdf binary
  • pdftk (optional, for encryption)

Each engine has its own license (LGPL or GPL) and maintenance status. See Engines and Licenses before you choose one.

Installation

composer require pieceofcake2/cakepdf

Contributing

See the contribution guidelines.

Origin

This package is a maintained fork of FriendsOfCake/CakePdf (friendsofcake/cakepdf on Packagist, last upstream version 1.0.3), originally by Ceeram. It is maintained for CakePHP 2 on modern PHP by pieceofcake2. Changes from the original are listed in the commit history since the fork.

License

The MIT License. See LICENSE.