vivek-mistry / laravel-invoice-engine
Global invoice engine for Laravel (tax, currency, number to words)
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/vivek-mistry/laravel-invoice-engine
Requires
- php: ^8.2||^8.3||^8.4||^8.5
- orchestra/testbench: ^10.0.0||^9.0.0
- phpunit/phpunit: *
README
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
Credits
- Vivek Mistry - Project creator and maintainer
License
MIT License. See LICENSE for details.