PHPackages                             infoway9/laravel-mpdf - 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. infoway9/laravel-mpdf

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

infoway9/laravel-mpdf
=====================

Generate PDF document in Laravel framework with this mPDF wrapper.

v1.0.0(7y ago)243MITPHPPHP &gt;=5.6

Since Jan 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/infoway9/laravel-mpdf)[ Packagist](https://packagist.org/packages/infoway9/laravel-mpdf)[ RSS](/packages/infoway9-laravel-mpdf/feed)WikiDiscussions master Synced today

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

Laravel mPDF: mPDF wrapper for Laravel 5+
=========================================

[](#laravel-mpdf-mpdf-wrapper-for-laravel-5)

> Generate PDF documents from raw HTML or laravel blade file using the laravel

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

[](#installation)

Require this package in your `composer.json` or install it by running:

```
composer require infoway9/laravel-mpdf

```

> Note: This package supports auto-discovery features of Laravel 5.4+, You only need to manually add the service provider and alias if working on Laravel version lower then 5.5

To start using Laravel, add the Service Provider and the Facade to your `config/app.php`:

```
'providers' => [
	// ...
	Infoway\mPdf\mPdfServiceProvider::class
]
```

```
'aliases' => [
	// ...
	'PDF' => Infoway\mPdf\Facades\Pdf::class
]
```

Now, you should publish package's config file to your config directory by using following command:

```
php artisan vendor:publish --tag=laravel-mpdf

```

Basic Usage
-----------

[](#basic-usage)

This is the basic usage of this package.

```
