Skip to content

Commit

Permalink
Added README file
Browse files Browse the repository at this point in the history
  • Loading branch information
tranduyhung committed May 5, 2019
1 parent 2aa96d1 commit cf31e23
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions README.md
@@ -0,0 +1,36 @@
# mPDF Library Package for Joomla! CMS

## Requirements

* Joomla! 3+.
* mPDF requirements: [https://github.com/mpdf/mpdf](https://github.com/mpdf/mpdf).

## Installation

Download the package of the latest release on [https://github.com/cmextension/mpdf/releases](https://github.com/cmextension/mpdf/releases), install it with Joomla! Extension Manager just like any other Joomla! extensions.

## Usage

In your Joomla! extension's code:

```
jimport('mpdf.mpdf');
$html = '<h1>Hello World!</h1>';
$mpdf = new \Mpdf\Mpdf();
$mpdf->WriteHTML($html);
$mpdf->Output();
```

Online manual of mPDF is available at [https://mpdf.github.io/](https://mpdf.github.io/).

## Development

* Clone this repository.
* Go to `mpdf` folder.
* Run `composer install` to install mPDF.

## License

GNU General Public License Version 2.

0 comments on commit cf31e23

Please sign in to comment.