https://github.com/mpdf/mpdf-examples
Example scripts for mPDF
https://github.com/mpdf/mpdf-examples
Last synced: about 1 year ago
JSON representation
Example scripts for mPDF
- Host: GitHub
- URL: https://github.com/mpdf/mpdf-examples
- Owner: mpdf
- Created: 2015-11-13T08:49:38.000Z (over 10 years ago)
- Default Branch: development
- Last Pushed: 2023-06-06T04:41:34.000Z (about 3 years ago)
- Last Synced: 2025-03-29T23:08:57.193Z (about 1 year ago)
- Language: PHP
- Size: 3.7 MB
- Stars: 127
- Watchers: 17
- Forks: 149
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mPDF examples repository
## How to use
1. Clone the repository or download the ZIP release
2. Initialize dependencies by running `$ composer install`
- You will need to have [composer installed](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx).
3. Then run example PHP files either from command line or from the browser
- In the command line, the files are sent to `stdout`, the most convenient is to redirect them to file with `>` operator
- In the browser, the output is sent inline to the browser so it should display in default PDF viewer
There is a generated list of example links for browser in the repository index.php file.