Skip to content

PDF utility to standardize and componentize the generation of PDF documents

License

Notifications You must be signed in to change notification settings

joaovdiasb/laravel-pdf-manager

Repository files navigation

Laravel PDF manager

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.

About

PDF utility to standardize and componentize the generation of PDF documents

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published