alhoqbani / laravel-pdf
Laravel wrapper for mPDF 7.0
0.0.1
2017-11-20 10:30 UTC
Requires
- php: ^7.0
- illuminate/config: ^5.5
- illuminate/console: ^5.5
- illuminate/filesystem: ^5.5
- illuminate/support: ^5.5
- mpdf/mpdf: ^7.0
Requires (Dev)
- mockery/mockery: ^1.0
- orchestra/testbench: ^3.5
- phpunit/phpunit: ^6.4
This package is auto-updated.
Last update: 2024-10-26 17:45:44 UTC
README
Laravel wrapper for mPDF 7.0
UNDER DEVELOPMENT. Do NOT use for production
Installation
You can install the package via composer:
composer require 'alhoqbani/laravel-pdf:@dev'
Usage
Start by publishing the config file:
php artisan vendor:publish --provider "Alhoqbani\PDF\PDFServiceProvider"
Edit the config file. You can add any extra configuration to be passed to the Mpdf
constructor.
To us the Mpdf library directly, you can get a pre-configured instance of Mpdf
<?php $mpdf = \PDF::getMpdf(); $mpdf->writeHTML('<h1>Hello World</h1>'); return $mpdf->output();
// TODO
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email h.alhoqbani@gmail.com instead of using the issue tracker.
Credits
Built using Spatie.be skeleton
License
The MIT License (MIT). Please see License File for more information.