PHP code example of dgvai / laravel-invoicer

1. Go to this page and download the library: Download dgvai/laravel-invoicer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dgvai / laravel-invoicer example snippets


    setupInvoice($invoice_no, $issue_date = null)

    setBuyer($name, $email, $phone = null)

    setShippingAddr($address)

    setShippingCost($cost)

    setHomeDeliveryCost($cost)

    addItem($title, $qty, $unit, $unit_price, $discount, $extra_cost = 0, $additional_shipping = 0)

    applyCoupon($code, $discount)

    setPaymentState($state, $label='info', $additional=null)

    generate($path_to_save=null)
bash
    php artisan vendor:publish --provider="DGvai\Invoicer\InvoicerServiceProvider"
bash
    php artisan config:cache