joaovdiasb / laravel-pdf-manager
Laravel pdf manager package
Installs: 1 053
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^7.4|^8.0
- barryvdh/laravel-dompdf: ^2.0
Requires (Dev)
- illuminate/support: ^8.0
- mockery/mockery: ^1.0
- nunomaduro/collision: ^4.0
- orchestra/database: ^6.0
- orchestra/testbench: ^6.0
- phpunit/phpunit: 9.4
- symfony/thanks: ^1.0
This package is auto-updated.
Last update: 2024-12-26 14:07:02 UTC
README
Installation
Install via composer
composer require joaovdiasb/laravel-pdf-manager
Configuration
You can optionally change the default values used by publishing the vendor
php artisan vendor:publish --provider="Joaovdiasb\LaravelPdfManager\LaravelPdfManagerServiceProvider"
Usage
(new PdfManager)->setHeader(view('pdf.header')) ->setFooter('DOCUMENT FOOTER') ->setBody(str_repeat('<u>[NAME]</u><br />', 100)) ->setData(['[NAME]' => 'Jhon Doe']) ->setPageCounter() ->save('documents');
Output PDF LINK HERE
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security-related issues, please email j.v_dias@hotmail.com instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.