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

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

flug/invoice
============

A simple invoice generator

00[8 PRs](https://github.com/flug/invoice/pulls)PHP

Since Jun 14Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (12)Used By (0)

Flug Invoice is a small library/bundle for Symfony to help you generate pdf invoices quickly, it doesn't use wkhtmltopdf but dompdf or you can find the [documentation here](https://github.com/dompdf/dompdf). you can overload as you want by implementing the interface : **"Flug\\Invoice\\ConfigurationInterface"**.

The full configuration of dependency injection is available here:

```
#flug_invoice.yaml

flug_invoice:
    currency: EUR
    decimal: 2
    logo:
        file: 'https://i.imgur.com/yRb1NQ7.png'
        height: 60
    business_details:
        name: My Company
        id: 1234567890
        phone: +34 123 456 789
        location: Main Street 1st
        zip: 08241
        city: Barcelona
        country: Spain
    footnote: ''
    tax_rates:
        - {name: '' , tax: 0 , type: percentage}
    due:
        format: M dS ,Y
        date: +3 months
    with_pagination: true
    duplication_header: false
    display_images: true
    template: '@FlugInvoice/default.html.twig'
```

The invoice template uses the [twigphp/twig](https://github.com/twigphp/Twig) rendering engine.

code example :

```
