Vivek Mistry ๐Ÿ‘‹

Iโ€™m a Certified Senior Laravel Developer with 6+ years of experience , specializing in building robust APIs and admin panels, frontend templates converting them into fully functional web applications.

Book A Call

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


Share: