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

1.0.0 2025-12-18 14:41 UTC

This package is auto-updated.

Last update: 2025-12-18 14:42:25 UTC


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

License

MIT License. See LICENSE for details.