Laravel Invoice Engine
๐งพ Laravel Invoice Engine
Global invoice utilities for Laravel
- Tax
- Discounts
- Currency
- Number to Words
๐ Features
- ๐ Multi-country tax (GST, VAT, Sales Tax)
- ๐ธ Percentage & flat discounts
- ๐ข Number to words (locale-based)
- ๐ฑ Currency formatting (Intl)
- ๐ Inclusive & exclusive tax
- ๐งช Fully tested (PHPUnit)
- โก Fluent, developer-friendly API
๐ ๏ธ Installation
Install the package via Composer:
composer require vivek-mistry/laravel-invoice-engine
โ๏ธ Configuration (Optional)
php artisan vendor:publish --tag=invoice-config
๐งฎ Basic Usage
use Invoice;
Invoice::amount(1000)
->country('IN')
->taxRate(18)
->summary();
๐ธ Percentage Discount
Invoice::amount(1000)
->discountPercent(10)
->taxRate(18)
->summary();
๐ฑ Flat Discount
Invoice::amount(1000)
->discountPercent(10)
->taxRate(18)
->summary();
๐ Inclusive Tax
Invoice::amount(1180)
->inclusive(true)
->taxRate(18)
->summary();
๐ข Number to Words
Invoice::amount(1250)->words();
๐ Supported Regions
- ๐ฎ๐ณ India (GST)
- ๐บ๐ธ USA (Sales Tax)
- ๐ฌ๐ง UK (VAT)
- ๐ช๐บ EU (VAT)
- ๐ฆ๐ช UAE (VAT)
๐งช Testing
vendor/bin/phpuit
Change Logs
Initial Release