Download the PHP package akira/laravel-pdf-invoices without Composer
On this page you can find all versions of the php package akira/laravel-pdf-invoices. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download akira/laravel-pdf-invoices
More information about akira/laravel-pdf-invoices
Files in akira/laravel-pdf-invoices
Package laravel-pdf-invoices
Short Description A modern, strictly typed, and extensible invoice generator for Laravel 12+ built with PHP 8.4 syntax. This package provides a clean builder pattern API, immutable data objects, and modular design inspired by LaravelDaily/laravel-invoices but rewritten from scratch with SOLID principles and Laravel best practices.
License MIT
Homepage https://github.com/akira-io/laravel-pdf-invoices
Informations about the package laravel-pdf-invoices
Beautiful, type-safe PDF invoice generator for Laravel 12+ with a fluent builder API, multiple professional templates, and multi-language support.
Features
- Builder Pattern - Chainable, fluent API for creating invoices
- Type-Safe - Strict types, readonly DTOs, zero magic
- Carbon Support - Seamless
CarbonandCarbonImmutableintegration for Laravel 11+ - 3 Templates - Minimal, modern, and branded designs (Tailwind CSS)
- Multi-Language - English, Portuguese, French (easily extensible)
- Custom Fields - Add any custom attributes to entities
- Currency Support - Flexible formatting with Laravel integration
- Multiple PDF Engines - Choose between Spatie (Browsershot/Chromium) or DomPDF
- Fully Tested - Comprehensive PestPHP test suite
- Quality Tools - PHPStan level max, Laravel Pint, Rector
Installation
Install via Composer:
Choose your PDF generation engine:
Option 1: Spatie (Browsershot/Chromium) - Default
Best for complex layouts and JavaScript rendering.
Runtime dependencies
- Node.js: Required to run Browsershot/Puppeteer.
- Chromium or Google Chrome: A headless browser instance.
- Puppeteer: Must be installed manually as a Node dependency.
spatie/browsershot is installed automatically as a package dependency.
Option 2: DomPDF
Pure PHP solution, no Node.js required:
Then publish assets:
Configure your PDF engine in .env:
Learn more about PDF generators →
Quick Start
Templates
Choose your preferred invoice style:
Minimal
Clean and simple, perfect for service invoices.
Modern
Contemporary design with gradient header and professional layout.
Branded
Business-focused with color accents for custom branding.
Localization
Generate invoices in different languages by setting the locale in the builder:
Supported: English (en), Portuguese (pt), French (fr)
View all translation keys →
Custom Attributes
Add custom fields to any entity:
Currency Formatting
Use Laravel's currency or custom formatters:
Storage
Save invoices to disk or custom storage:
Advanced Usage
Discounts & Taxes
Custom Invoice Numbers & Dates
Carbon & CarbonImmutable Support
The date methods accept both Carbon (mutable) and CarbonImmutable (immutable) instances, as well as any DateTimeInterface implementation. This makes it seamless to work with Laravel 11+ which uses CarbonImmutable by default:
Accessing Calculations
Testing
Run the test suite:
With coverage:
Documentation
- Full Documentation
- Usage Guide
- PDF Generators
- Builder Pattern
- Custom Attributes
- Templates Guide
- Custom Templates
- Customization
- Localization
- CSS Compilation
- Contributing
Changelog
See CHANGELOG.md for recent changes and updates.
License
The MIT License (MIT). See LICENSE.md for details.
Credits
Built with Laravel best practices and inspired by the Laravel community.
- Kidiatoliny - Creator
- All Contributors
Support
Having issues? Check out the documentation or open an issue on GitHub.
All versions of laravel-pdf-invoices with dependencies
spatie/laravel-package-tools Version ^1.93
illuminate/contracts Version ^12.0 | ^13.0
spatie/browsershot Version ^5.2.3
spatie/laravel-pdf Version ^2.2
barryvdh/laravel-dompdf Version ^2.0 || ^3.1.1