laraveldaily/laravel-invoices
Generate customizable PDF invoices in Laravel with templates, translations, taxes/discounts/shipping, due dates, serial numbers, and flexible currency formatting. Store, download, or stream via any configured filesystem, with global settings and per-invoice overrides.
Artisan commands, config publishing, and facade usage), reducing friction in adoption.invoices:install command to publish assets/config. No database migrations or complex dependencies.seller or buyer.Mail::send with the generated PDF.local, s3, or other configured disks.stream(), download(), and save() enable easy integration with APIs or frontend frameworks (e.g., Inertia.js/Vue).Data Flow:
Storage:
public disk for downloads, s3 for archival?)Workflow:
Compliance:
Scaling:
spatie/pdf-to-text or similar tools.)Monitoring:
Party classes or override defaults.InvoiceGenerated) for post-processing.Notifiable interfaces.download() URLs or base64-encoded PDFs.queue:work to process bulk invoices (e.g., monthly statements).LaravelDaily\Invoices\Jobs\GenerateInvoice for custom logic.composer require laraveldaily/laravel-invoices:^4.1.1.php artisan invoices:install.Invoice::make() example.Party/InvoiceItem classes.OrderPaid event).resources/views/vendor/invoices/templates/.Party/Seller classes for domain-specific fields (e.g., TaxId).required|numeric for taxRate).invoice_id, serial_number) in a table.barryvdh/laravel-dompdf is installed (required for PDF generation).local, s3) in config/filesystems.php.php artisan invoices:install (publishes views, translations, config).config/invoices.php for global settings (e.g., default currency, seller details).Invoice::make()->stream()).laravel-invoices:update Artisan command).getAmountInWords).barryvdh/laravel-dompdf for security patches or breaking changes.composer.json to avoid unexpected updates.Party classes) to simplify future updates.invoices.translations).dd($invoice->toHtml()) to inspect generated HTML before PDF conversion.storage/logs/laravel.log for errors.queue:work for batch processing.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| PDF generation fails | Invoices not sent to customers | Retry logic (e.g., Laravel queues with retryAfter). |
| Template rendering errors | Broken invoice layouts | Validate templates in CI/CD (e.g., php artisan invoices:update in tests). |
| Storage disk full | Invoices cannot be saved | Monitor disk usage; set up alerts. |
| Tax/discount calculation errors | Incorrect invoice totals | Unit tests for calculation logic (e.g., |
How can I help you explore Laravel packages today?