mikailfaruqali / invoice-template
A Laravel package for generating PDF invoices with customizable templates. Features header/footer support via Snappy PDF generator and database-driven content management.
Installs: 52
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:Blade
Requires
- php: >=7.4
- barryvdh/laravel-snappy: ^1.0
- illuminate/contracts: >=5.0
Requires (Dev)
- driftingly/rector-laravel: ^2.0
- laravel/pint: ^1.14
- orchestra/testbench: ^8.22|^9.0
This package is auto-updated.
Last update: 2025-09-02 17:03:54 UTC
README
Simple Laravel package for managing and rendering PDF invoice templates.
Installation
composer require mikailfaruqali/invoice-template
php artisan vendor:publish --provider="Snawbar\\InvoiceTemplate\\InvoiceTemplateServiceProvider"
php artisan migrate
Usage
use Snawbar\InvoiceTemplate\InvoiceTemplate; // Create a template InvoiceTemplate::create($request); // Render PDF in browser InvoiceTemplate::template('my-invoice')->inline(); // Save PDF to file $path = InvoiceTemplate::template('my-invoice')->save();
Web UI
Visit /invoice-templates
to manage templates with a simple interface.
License
MIT