PHPackages                             shwaeki/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. shwaeki/invoices

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

shwaeki/invoices
================

Generate PDF invoices for your customers in laravel

06PHP

Since Feb 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/shwaeki/Invoices)[ Packagist](https://packagist.org/packages/shwaeki/invoices)[ RSS](/packages/shwaeki-invoices/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)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

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

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/691dc8c05b134b78d01317742b4bd668170ea55ad49a68b2c1ba410e9f2d17bb?d=identicon)[shwaeki](/maintainers/shwaeki)

---

Top Contributors

[![shwaeki](https://avatars.githubusercontent.com/u/29059649?v=4)](https://github.com/shwaeki "shwaeki (10 commits)")

### Embed Badge

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

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

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.3k](/packages/phpoffice-phpspreadsheet)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

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

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.1k57.6M131](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)

PHPackages © 2026

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