Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wimil/invoices
generate laravel invoices
https://github.com/wimil/invoices
Last synced: about 2 months ago
JSON representation
generate laravel invoices
- Host: GitHub
- URL: https://github.com/wimil/invoices
- Owner: wimil
- Created: 2020-04-13T18:49:14.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-17T16:10:01.000Z (about 4 years ago)
- Last Synced: 2024-04-20T23:20:46.766Z (9 months ago)
- Language: PHP
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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.## Install
```bahs
composer require wimil/invoices
```
## Publish### Config
```bash
php artisan vendor:publish --tag=invoices.config
```### Views
```bash
php artisan vendor:publish --tag=invoices.views
```### Translations
```bash
php artisan vendor:publish --tag=invoices.translations
``````php
$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();
```