PHPackages                             dgtlinf/invoice - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. dgtlinf/invoice

ActiveLibrary[Payment Processing](/categories/payments)

dgtlinf/invoice
===============

A modern, extensible and framework-agnostic Laravel package for generating professional invoices — with pricing, tax, discount, currency, and PDF engines.

v1.0.0(7mo ago)00MITPHPPHP ^8.2CI passing

Since Oct 13Pushed 7mo agoCompare

[ Source](https://github.com/dgtlinf/invoice)[ Packagist](https://packagist.org/packages/dgtlinf/invoice)[ RSS](/packages/dgtlinf-invoice/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (3)Used By (0)

Dgtlinf Invoice
===============

[](#dgtlinf-invoice)

[![Latest Version on Packagist](https://camo.githubusercontent.com/21ccc6ea5eb6c3feb7148dc1e00b36b60834ee51de2cab5fb82a607c3e6ce2c7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6467746c696e662f696e766f6963652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dgtlinf/invoice)[![GitHub Tests Action Status](https://camo.githubusercontent.com/928e26f9c3a96a22d69e2ad0f7a1164b7bd9d4d64496f1c13c1f51e7aab1c8de/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6467746c696e662f696e766f6963652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/dgtlinf/invoice/actions)[![Total Downloads](https://camo.githubusercontent.com/2d323ff3fa44431a34a0c8c41c87f8180345f9cd513c211597e8657ad161b4af/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6467746c696e662f696e766f6963652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dgtlinf/invoice)[![License](https://camo.githubusercontent.com/71944ac0c5c82ce9ec35f446754f78d0c4bf10b466cca091c5ccfe582b55b708/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6467746c696e662f696e766f6963652e7376673f7374796c653d666c61742d737175617265)](https://github.com/dgtlinf/invoice/blob/main/LICENSE)[![PHP Version](https://camo.githubusercontent.com/7cb6e51c03bd8f9bac7dad425741162bd74d0ce060270964054394ffad785eca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e322d626c75653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/7cb6e51c03bd8f9bac7dad425741162bd74d0ce060270964054394ffad785eca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e322d626c75653f7374796c653d666c61742d737175617265)[![Laravel Version](https://camo.githubusercontent.com/6eb28b6d03f846d8178cf008fe1f1572e186e6f2af8dbd7e5498eb285e77d97a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d25354531302d6f72616e67653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/6eb28b6d03f846d8178cf008fe1f1572e186e6f2af8dbd7e5498eb285e77d97a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d25354531302d6f72616e67653f7374796c653d666c61742d737175617265)

Modern, fully typed invoicing toolkit for Laravel applications with discount, tax, currency and PDF engines that work together out of the box.

Highlights
----------

[](#highlights)

- Value-object based models and enums for rock-solid invoice data.
- Dedicated pricing, tax, discount and numbering engines with sensible defaults.
- Built-in DomPDF integration with publishable Blade templates.
- Currency formatter, units and helpers that keep calculations precise.
- Batteries-included facade: `Invoice::make()`, `Invoice::calculate()`, `Invoice::stream()` and more.

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 10.x, 11.x or 12.x
- `barryvdh/laravel-dompdf` (installed automatically)

Install
-------

[](#install)

```
composer require dgtlinf/invoice
```

Publish the configuration or default PDF view if you need to customise them:

```
php artisan vendor:publish --tag="invoice-config"
php artisan vendor:publish --tag="invoice-views"
```

Quick usage
-----------

[](#quick-usage)

```
use Dgtlinf\Invoice\Facades\Invoice;
use Dgtlinf\Invoice\Models\{LineItem, Party, PaymentDetails, Tax, Quantity, Money};
use Dgtlinf\Invoice\Support\{Currency, UnitType, InvoiceType};

Route::get('/invoice', function () {
    $currency = Currency::fromConfig();

    $seller = new Party(name: 'DEMO COMPANY ACME LTD', address: 'Main Street 123456', taxId: '123456789');
    $buyer = new Party(name: 'Acme, Inc.', address: '1234 Goto street', taxId: '11-2222222');

    $items = [
        new LineItem(
            description: 'Monthly retainer fee',
            quantity: Quantity::from(1),
            unitPrice: Money::from(15000, $currency),
            tax: new Tax('VAT', 0, Money::from(0, $currency)),
            unit: UnitType::MONTH
        ),
        // ...more items, discounts, etc.
    ];

    $items = Invoice::applyItemDiscounts($items);

    $payment = new PaymentDetails(
        bankName: 'GREAT BANK OF WORLD, London, UK',
        accountNumber: '000-000000000-11',
        iban: 'UK000000000000000'
    );

    $invoice = Invoice::make([
        'number' => 'INV0001',
        'type' => InvoiceType::INVOICE,
        'seller' => $seller,
        'buyer' => $buyer,
        'items' => $items,
        'amountPaid' => Money::from(0, $currency),
        'paymentDetails' => $payment,
        'note' => 'The VAT calculation date is the date of supply.',
        'dueAt' => now()->addDays(7),
    ]);

    return Invoice::stream(Invoice::calculate($invoice));
});
```

Documentation
-------------

[](#documentation)

Full documentation, usage examples, and advanced configuration guides are available at:
👉

License
-------

[](#license)

This package is open-sourced software licensed under the **MIT License**.
© 2025 Digital Infinity DOO. All rights reserved.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance64

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

217d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc897661efd3f9b1d0b6cee6fa6eb2f5535819e0c2e0a0adab66b4d6002133be?d=identicon)[gorankrgovic](/maintainers/gorankrgovic)

---

Top Contributors

[![gorankrgovic](https://avatars.githubusercontent.com/u/12137730?v=4)](https://github.com/gorankrgovic "gorankrgovic (9 commits)")

---

Tags

laravelpdfmoneybillinggeneratorinvoicetaxdiscountdgtlinf

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/dgtlinf-invoice/health.svg)

```
[![Health](https://phpackages.com/badges/dgtlinf-invoice/health.svg)](https://phpackages.com/packages/dgtlinf-invoice)
```

###  Alternatives

[laraveldaily/laravel-invoices

Missing invoices for Laravel

1.5k1.3M4](/packages/laraveldaily-laravel-invoices)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
