Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ConsoleTVs/Invoices
Generate PDF invoices for your customers in laravel
https://github.com/ConsoleTVs/Invoices
download generate invoice laravel modern pdf pdf-invoice
Last synced: about 2 months ago
JSON representation
Generate PDF invoices for your customers in laravel
- Host: GitHub
- URL: https://github.com/ConsoleTVs/Invoices
- Owner: ConsoleTVs
- License: mit
- Created: 2017-05-30T18:25:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-13T07:06:47.000Z (10 months ago)
- Last Synced: 2024-10-01T23:17:43.371Z (3 months ago)
- Topics: download, generate, invoice, laravel, modern, pdf, pdf-invoice
- Language: PHP
- Size: 72.3 KB
- Stars: 447
- Watchers: 17
- Forks: 128
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.## Sample Invoice
This is a sample invoice generated using this library:
![Sample Invoice](https://i.gyazo.com/768f5b59791162e432f9cdfa15f017bc.png)
```php
$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
## License
```
MIT LicenseCopyright (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
* [Codevio](https://github.com/codevio);