https://github.com/joaovdiasb/laravel-pdf-manager
PDF utility to standardize and componentize the generation of PDF documents
https://github.com/joaovdiasb/laravel-pdf-manager
laravel-package laravel-pdf pdf pdf-generation
Last synced: about 1 month ago
JSON representation
PDF utility to standardize and componentize the generation of PDF documents
- Host: GitHub
- URL: https://github.com/joaovdiasb/laravel-pdf-manager
- Owner: joaovdiasb
- License: mit
- Created: 2022-08-02T18:57:37.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-26T13:40:30.000Z (8 months ago)
- Last Synced: 2025-03-26T07:22:36.861Z (about 2 months ago)
- Topics: laravel-package, laravel-pdf, pdf, pdf-generation
- Language: PHP
- Homepage:
- Size: 42 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Laravel PDF manager
[](LICENSE.md)
[](https://packagist.org/packages/joaovdiasb/laravel-pdf-manager)## Installation
Install via composer
```bash
composer require joaovdiasb/laravel-pdf-manager
```## Configuration
You can optionally change the default values used by publishing the vendor
```bash
php artisan vendor:publish --provider="Joaovdiasb\LaravelPdfManager\LaravelPdfManagerServiceProvider"
```## Usage
```php
(new PdfManager)->setHeader(view('pdf.header'))
->setFooter('DOCUMENT FOOTER')
->setBody(str_repeat('[NAME]
', 100))
->setData(['[NAME]' => 'Jhon Doe'])
->setPageCounter()
->save('documents');
```Output PDF LINK HERE
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
## License
The MIT License (MIT). Please see [License File](/LICENSE.md) for more information.