PHPackages                             eslam-abass/laravel-invoice-generator - 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. eslam-abass/laravel-invoice-generator

ActiveLaravel-package

eslam-abass/laravel-invoice-generator
=====================================

A Laravel package for generating customizable PDF invoices.

00PHP

Since Jul 5Pushed 10mo agoCompare

[ Source](https://github.com/eslamabdallah74/laravel_invoice_generator)[ Packagist](https://packagist.org/packages/eslam-abass/laravel-invoice-generator)[ RSS](/packages/eslam-abass-laravel-invoice-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Invoice Generator
=========================

[](#laravel-invoice-generator)

A modern, clean Composer package for Laravel that generates customizable PDF invoices.

Features
--------

[](#features)

- Blade-based invoice templates (publishable and editable)
- Dynamic invoice data (customer info, products/services, taxes, discounts, subtotal, total)
- Optional QR code with a link (e.g., to view the invoice online)
- Multi-language and currency formatting support
- Config file for customizing default settings (currency, tax rules, branding, etc.)
- Laravel-ready: registers via service provider, supports `php artisan vendor:publish`, and offers a facade or helper function like `Invoice::make()->toPdf()`
- Good DX: clear docs, well-named classes, optional view preview before generating PDF

Installation
------------

[](#installation)

You1. Require the package with Composer:

```
```bash
composer require your-vendor/laravel-invoice-generator
```

```

2. (Optional) Publish the configuration file and views:

    ```
    php artisan vendor:publish --provider="YourVendor\\LaravelInvoiceGenerator\\InvoiceServiceProvider"
    ```

    This will publish `config/invoice.php` and `resources/views/vendor/invoice/template.blade.php`.

Usage
-----

[](#usage)

### Generating a PDF Invoice

[](#generating-a-pdf-invoice)

```
use YourVendor\LaravelInvoiceGenerator\Facades\Invoice;

$data = [
    'customer' => [
        'name' => 'John Doe',
        'address' => '123 Main St, Anytown, USA',
        'email' => 'john.doe@example.com',
    ],
    'items' => [
        [
            'description' => 'Product A',
            'quantity' => 2,
            'unit_price' => 10.00,
            'total' => 20.00,
        ],
        [
            'description' => 'Service B',
            'quantity' => 1,
            'unit_price' => 50.00,
            'total' => 50.00,
        ],
    ],
    'subtotal' => 70.00,
    'tax' => 7.00, // Assuming 10% tax
    'discount' => 5.00,
    'total' => 72.00,
    'qr_code_link' => 'https://example.com/invoice/123',
];

return Invoice::make($data)->toPdf();
```

### Previewing the Invoice

[](#previewing-the-invoice)

```
use YourVendor\LaravelInvoiceGenerator\Facades\Invoice;

$data = [
    // ... same data as above
];

return Invoice::make($data)->preview();
```

### Configuration

[](#configuration)

The `config/invoice.php` file allows you to customize various settings:

- `template`: The Blade template used for rendering the invoice.
- `currency`: Default currency for invoices.
- `tax_rate`: Default tax rate.
- `company_logo`, `company_name`, `company_address`, `company_phone`, `company_email`, `company_website`: Company branding details.
- `qr_code`: Settings for the optional QR code (enabled, size, color, background).
- `pdf_generator`: Currently only `dompdf` is supported.

Customizing Templates
---------------------

[](#customizing-templates)

After publishing the views, you can edit `resources/views/vendor/invoice/template.blade.php` to fully customize the invoice's appearance.

Multi-language Support
----------------------

[](#multi-language-support)

The package leverages Laravel's localization features. Ensure your application's locale is set correctly, and the `NumberFormatter` in the `Invoice` class will handle currency formatting based on the current locale.

Contributing
------------

[](#contributing)

Feel free to contribute to this project by submitting issues or pull requests.

License
-------

[](#license)

The Laravel Invoice Generator is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![eslamabdallah74](https://avatars.githubusercontent.com/u/30262666?v=4)](https://github.com/eslamabdallah74 "eslamabdallah74 (2 commits)")

### Embed Badge

![Health badge](/badges/eslam-abass-laravel-invoice-generator/health.svg)

```
[![Health](https://phpackages.com/badges/eslam-abass-laravel-invoice-generator/health.svg)](https://phpackages.com/packages/eslam-abass-laravel-invoice-generator)
```

PHPackages © 2026

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