wimil/invoices

generate Invoices for laravel

Maintainers

Package info

github.com/wimil/invoices

pkg:composer/wimil/invoices

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2020-12-17 16:10 UTC

This package is auto-updated.

Last update: 2026-02-18 03:41:42 UTC


README

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.

Install

composer require wimil/invoices

Publish

Config

php artisan vendor:publish --tag=invoices.config

Views

php artisan vendor:publish --tag=invoices.views

Translations

php artisan vendor:publish --tag=invoices.translations
$invoice = \Wimil\Invoices\Invoice::make()
            ->code('PA-0001')
            ->name('Invoice')
            ->to([
                'name' => 'Èrik Campobadal Forés',
                'id' => '12345678A',
                'phone' => '+34 123 456 789',
                'location' => 'C / Unknown Street 1st',
                'zip' => '08241',
                'city' => 'Manresa',
                'country' => 'Spain',
            ])
            ->addItem([10, 'Test Item', 200.50, 1, 200.50])
            ->addItem([11, 'Test Item', 500.00, 2, 1000.00])
            ->save()
            ->show();