consoletvs / invoices
Generate PDF invoices for your customers in laravel
Installs: 233 443
Dependents: 0
Suggesters: 0
Security: 0
Stars: 447
Watchers: 17
Forks: 128
Open Issues: 16
Requires
- ext-bcmath: *
- dompdf/dompdf: ^2.0
- illuminate/support: ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/view: ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- nesbot/carbon: >1.22
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:
$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 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.