Download the PHP package dgvai/laravel-invoicer without Composer
On this page you can find all versions of the php package dgvai/laravel-invoicer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dgvai/laravel-invoicer
More information about dgvai/laravel-invoicer
Files in dgvai/laravel-invoicer
Package laravel-invoicer
Short Description Invoice Management Package For Laravel
License MIT
Informations about the package laravel-invoicer
Invoicer - Invoice Generator Package for Laravel
This package is built for Invoice Management and Generation for Laravel 5.5+, 6.x, 7.x (not tested for lower versions)
Contents
- Invoicer - Invoice Generator Package for Laravel
- Contents
- Installation
- Publish Configuration
- Setup and configure
- Usage
- Generate Invoice
- Available Methods
- Setup Invoice
- Setup Buyer Informations
- Set Shipping Address
- Set Shipping Cost
- Set Home Delivery Cost
- Add Items
- Apply Coupon Discount
- Set Payment State
- Generate
- Changelog
- License
Installation
You can install the package via composer:
Publish Configuration
Publish configuration file
Setup and configure
You can update your app environment (.env) (If needed). The environment Values are all your choice. Peek a look at config/invoicer.php
Configure your configuration file, the required details for the values are documentated as commented in config/invoicer.php
file.
After done configuraing
Usage
Generate Invoice
From your controller:
NOTE This is the minimalist basic need to generate invoice PDF.
Example PDF Have look at this example pdf generated.
Example PDF (v2) Have look at this advanced example (v2) pdf generated.
Available Methods
Setup Invoice
Description: Setup the invoice.
Params
required Invoice No : string
optional Issue Date : string
: By default it will take current date.
Setup Buyer Informations
Description: Set the buyer/user information.
Params
required Buyer Name : string
required Buyer Email : string
optional Buyer Phone : string
Set Shipping Address
Description: Set the buyer/user shipping address.
Params
required Buyer Shipping Address : string
Set Shipping Cost
Description: Set the buyer/user shipping cost.
Params
required Buyer Shipping Cost : numeric
Set Home Delivery Cost
Description: Set the buyer/user Home Delivery cost.
Params
required Buyer Home Delivery Cost : numeric
Add Items
Description: Add the items buyer/user bought, eg. from cart or order history.
Params
required Item Title : string
required Item Quantity : integer/float
required Item Unit : string
: eg. Pc/Kg/Plate...
required Item Unit Price : decimal
required Item Discount : decimal
optional Item Extra Cost : decimal
optional Item Additional Shipping Cost : decimal
Apply Coupon Discount
Description: Apply coupon discount to your orders invoice.
Params
required Coupon Code : string
required Coupon Discount : integer/float
Set Payment State
Description: Set the payment state of the invoice. Also add some notes.
Params
required State : string
: eg. PAID, UNPAID, PENDING...
optional Label : enums
: [success/important/warning]
optional Additional : string
: Additional note on payment to show
Generate
Description: Generate the Invoice PDF.
Params
optional Path/to/filename.pdf : string
: The full path of saving with filename. By default it will save on public/invoices
path.
Changelog
Please see CHANGELOG for more information what has changed recently.
License
The MIT License (MIT). Please see License File for more information.