joaovdiasb/laravel-pdf-manager

Laravel pdf manager package

0.1.6 2023-08-29 13:52 UTC

This package is auto-updated.

Last update: 2024-03-29 15:01:03 UTC


README

Software License Total Downloads

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.