Fork of the mPDF latest DEV library (unofficial) with composer and packagist support.
PHP CSS
Latest commit 01689a8 Dec 21, 2016 @kartik-v committed on GitHub Merge pull request #19 from danik2592/patch-1
Fix for #18
Permalink
Failed to load latest commit information.
classes Fix for #18 Dec 20, 2016
collations Initial release Oct 30, 2014
examples Upgrade to release v1.0.1 Feb 18, 2015
font Upgrade to release v1.0.1 Feb 18, 2015
graph_cache Initial release Oct 30, 2014
iccprofiles Fix #1: Remove not needed files by clearing iccprofiles/CMYK folder May 5, 2015
includes Upgrade to release v1.0.1 Feb 18, 2015
mpdfi Bad constructors Nov 27, 2015
patterns Upgrade to release v1.0.1 Feb 18, 2015
qrcode Upgrade to release v1.0.1 Feb 18, 2015
tmp Initial release Oct 30, 2014
ttfontdata Upgrade to release v1.0.1 Feb 18, 2015
ttfonts Upgrade to release v1.0.1 Feb 18, 2015
utils Upgrade to release v1.0.1 Feb 18, 2015
CHANGE.md Update to release v1.0.3 Jun 18, 2015
CHANGELOG.txt Upgrade to release v1.0.1 Feb 18, 2015
CREDITS.txt Upgrade to release v1.0.1 Feb 18, 2015
LICENSE.txt Upgrade to release v1.0.1 Feb 18, 2015
README.md Update README.md Apr 9, 2016
README.txt Upgrade to release v1.0.1 Feb 18, 2015
composer.json Update to release v1.0.3 Jun 18, 2015
compress.php Upgrade to release v1.0.1 Feb 18, 2015
config.php Upgrade to release v1.0.1 Feb 18, 2015
config_fonts-distr-without-OTL.php Upgrade to release v1.0.1 Feb 18, 2015
config_fonts.php Upgrade to release v1.0.1 Feb 18, 2015
config_lang2fonts.php Upgrade to release v1.0.1 Feb 18, 2015
config_script2lang.php Initial release Oct 30, 2014
graph.php Initial release Oct 30, 2014
lang2fonts.css Upgrade to release v1.0.1 Feb 18, 2015
mpdf.css Upgrade to release v1.0.1 Feb 18, 2015
mpdf.php fix is_writable issue in php7 Nov 7, 2016
progbar.css Initial release Oct 30, 2014

README.md

mpdf

Latest Stable Version License Total Downloads Monthly Downloads Daily Downloads


Use the mpdf/mpdf repo instead

Effective 08-Apr-2016, I am redirecting and encouraging folks to use the above repo - to ensure a single codebase for mpdf management in future. This repo was initially created since there was no other package having the 6.x release that could be installed via composer. For folks coming over from Yii, note that the yii2-mpdf extension has been modified to use the mpdf/mpdf repo


This is a fork of the mPDF library. mPDF is a PHP class which generates PDF files from UTF-8 encoded HTML. It is based on FPDF and HTML2FPDF, with a number of enhancements. It is slower than the original scripts e.g. HTML2FPDF and produces larger files when using Unicode fonts, but support for CSS styles etc. has been much enhanced.

This fork adds composer and packagist support.

Why this repo?

I needed this for building many of my dependent PHP based projects that use this wonderful PDF library. Managing package dependencies via a central repository was important for folks like me. I use composer to manage package dependencies via packages on packagist.org. This repository allows access to some specific features and needs:

  1. Adds ability to update library and manage dependencies via composer in your PHP based applications
  2. Uses the latest development version (v6.0beta) of the mPDF library. I needed the latest development version via composer, which was not found elsewhere. mPDF 6.0 can utilise OpenType layout tables to display complex scripts. It will be of most interest to those wishing to use Arabic or Indic scripts (as well as Khmer, Lao, Myanmar etc.). It will also improve the display of Thai, Vietnamese and Hebrew.
  3. This beta release (v6.0) contains fonts (open source) to cover almost every imaginable script / language. It also includes additional fonts for Chinese, Japanese, and Korean.

Installation

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require mpdf/mpdf "@dev"

or add

"mpdf/mpdf": "@dev"

to the require section of your composer.json file.

Refer the readme instructions for other details on setting up the extension.

Usage

PHP 5.4 and later can use namespaces to access. Refer the documentation manual or the upstream mpdf site for further details and understanding of the library.

use \mPDF;

$pdf = new mPDF();