PHPackages                             consoletvs/invoices - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. consoletvs/invoices

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

consoletvs/invoices
===================

Generate PDF invoices for your customers in laravel

1.8.2(2y ago)455275.5k↓14.3%129[10 issues](https://github.com/ConsoleTVs/Invoices/issues)[3 PRs](https://github.com/ConsoleTVs/Invoices/pulls)MITPHP

Since May 30Pushed 2y ago15 watchersCompare

[ Source](https://github.com/ConsoleTVs/Invoices)[ Packagist](https://packagist.org/packages/consoletvs/invoices)[ RSS](/packages/consoletvs-invoices/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (26)Used By (0)

[![](https://camo.githubusercontent.com/8bf722f98b58c3621e37bc83e94ca67d37d8f4881e85b8e37e3d734e739fc3e1/687474703a2f2f692e696d6775722e636f6d2f7439473372464d2e706e67)](https://erik.cat/projects/invoices)

[![StyleCI Status](https://camo.githubusercontent.com/334673ac1cee27600d55cddbfcf24dc52ecb730f60e8a1d55e9cdbfcac4b004f/68747470733a2f2f7374796c6563692e696f2f7265706f732f39323836333432362f736869656c643f6272616e63683d6d6173746572267374796c653d666c6174)](https://styleci.io/repos/92863426)[![Build For Laravel](https://camo.githubusercontent.com/9d0e49e88cc565047271b33091f74c61bd665a5690747864fcff8e335eb285e9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4275696c745f666f722d4c61726176656c2d6f72616e67652e737667)](https://styleci.io/repos/92863426)[![Total Downloads](https://camo.githubusercontent.com/312fefd977b160d711ad940688c1e6925ffcfc2cd02cbc157e6424655a36634e/68747470733a2f2f706f7365722e707567782e6f72672f636f6e736f6c657476732f696e766f696365732f642f746f74616c2e737667)](https://packagist.org/packages/consoletvs/invoices)[![Latest Stable Version](https://camo.githubusercontent.com/ad7c10f697ad62fb59a3f9d2935f89569a281e1ad9c878d414b922438eacf52f/68747470733a2f2f706f7365722e707567782e6f72672f636f6e736f6c657476732f696e766f696365732f762f737461626c652e737667)](https://packagist.org/packages/consoletvs/invoices)[![License](https://camo.githubusercontent.com/1afe277ae606cdea68736b1514ea70534f1b9358fb37ce36380e89dc7d99fe50/68747470733a2f2f706f7365722e707567782e6f72672f636f6e736f6c657476732f696e766f696365732f6c6963656e73652e737667)](https://packagist.org/packages/consoletvs/invoices)

What is Invoices?
-----------------

[](#what-is-invoices)

Invoices is a Laravel library that generates a PDF invoice for your customers. The PDF can be either downloaded or streamed in the browser. It's highly customizable and you can modify the whole output view as well.

Sample Invoice
--------------

[](#sample-invoice)

This is a sample invoice generated using this library:

[![Sample Invoice](https://camo.githubusercontent.com/0ea40b9ac379c9c1a30f1137038e43c061964ee1ff4317c7a8eebc6a5e966718/68747470733a2f2f692e6779617a6f2e636f6d2f37363866356235393739313136326534333266396364666131356630313762632e706e67)](https://camo.githubusercontent.com/0ea40b9ac379c9c1a30f1137038e43c061964ee1ff4317c7a8eebc6a5e966718/68747470733a2f2f692e6779617a6f2e636f6d2f37363866356235393739313136326534333266396364666131356630313762632e706e67)

```
$invoice = \ConsoleTVs\Invoices\Classes\Invoice::make()
                ->addItem('Test Item', 10.25, 2, 1412)
                ->addItem('Test Item 2', 5, 2, 923)
                ->addItem('Test Item 3', 15.55, 5, 42)
                ->addItem('Test Item 4', 1.25, 1, 923)
                ->addItem('Test Item 5', 3.12, 1, 3142)
                ->addItem('Test Item 6', 6.41, 3, 452)
                ->addItem('Test Item 7', 2.86, 1, 1526)
                ->addItem('Test Item 8', 5, 2, 923, 'https://dummyimage.com/64x64/000/fff')
                ->number(4021)
                ->with_pagination(true)
                ->duplicate_header(true)
                ->due_date(Carbon::now()->addMonths(1))
                ->notes('Lrem ipsum dolor sit amet, consectetur adipiscing elit.')
                ->customer([
                    'name'      => 'Èrik Campobadal Forés',
                    'id'        => '12345678A',
                    'phone'     => '+34 123 456 789',
                    'location'  => 'C / Unknown Street 1st',
                    'zip'       => '08241',
                    'city'      => 'Manresa',
                    'country'   => 'Spain',
                ])
                ->download('demo')
                //or save it somewhere
                ->save('public/myinvoicename.pdf');
```

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

[](#documentation)

[![](https://camo.githubusercontent.com/903353ec8cab9bd6672ccec71218f3bd8ce73a0a4bb3891e161abbdd965285eb/687474703a2f2f692e696d6775722e636f6d2f3437576e4144642e706e67)](https://erik.cat/projects/invoices)

License
-------

[](#license)

```
MIT License

Copyright (c) 2017 Erik Campobadal

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

```

Special thanks
--------------

[](#special-thanks)

- [Codevio](https://github.com/codevio);

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity56

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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

Every ~124 days

Recently: every ~362 days

Total

21

Last Release

797d ago

### Community

Maintainers

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

---

Top Contributors

[![ConsoleTVs](https://avatars.githubusercontent.com/u/6124435?v=4)](https://github.com/ConsoleTVs "ConsoleTVs (48 commits)")[![codevio](https://avatars.githubusercontent.com/u/58127917?v=4)](https://github.com/codevio "codevio (19 commits)")[![jkudish](https://avatars.githubusercontent.com/u/260253?v=4)](https://github.com/jkudish "jkudish (4 commits)")[![halabe15](https://avatars.githubusercontent.com/u/15017125?v=4)](https://github.com/halabe15 "halabe15 (3 commits)")[![georgetassiano](https://avatars.githubusercontent.com/u/8898824?v=4)](https://github.com/georgetassiano "georgetassiano (2 commits)")[![danielfaulknor](https://avatars.githubusercontent.com/u/334835?v=4)](https://github.com/danielfaulknor "danielfaulknor (1 commits)")[![BnitoBzh](https://avatars.githubusercontent.com/u/2962152?v=4)](https://github.com/BnitoBzh "BnitoBzh (1 commits)")[![aurawindsurfing](https://avatars.githubusercontent.com/u/14302496?v=4)](https://github.com/aurawindsurfing "aurawindsurfing (1 commits)")[![fridzema](https://avatars.githubusercontent.com/u/8180660?v=4)](https://github.com/fridzema "fridzema (1 commits)")

---

Tags

downloadgenerateinvoicelaravelmodernpdfpdf-invoicelaravelpdfinvoicesgeneratecreateopen-sourcecustomersErik Campobadal

### Embed Badge

![Health badge](/badges/consoletvs-invoices/health.svg)

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

###  Alternatives

[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M278](/packages/barryvdh-laravel-dompdf)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[elibyy/tcpdf-laravel

tcpdf support for Laravel 6, 7, 8, 9, 10, 11

3542.7M5](/packages/elibyy-tcpdf-laravel)

PHPackages © 2026

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