PHP code example of vivek-mistry / laravel-invoice-engine

1. Go to this page and download the library: Download vivek-mistry/laravel-invoice-engine 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/ */

    

vivek-mistry / laravel-invoice-engine example snippets


use Invoice;

Invoice::amount(1000)
    ->country('IN')
    ->taxRate(18)
    ->summary();

Invoice::amount(1000)
    ->discountPercent(10)
    ->taxRate(18)
    ->summary();

Invoice::amount(1000)
    ->discountPercent(10)
    ->taxRate(18)
    ->summary();

Invoice::amount(1180)
    ->inclusive(true)
    ->taxRate(18)
    ->summary();

Invoice::amount(1250)->words();

vendor/bin/phpuit

bash
php artisan vendor:publish --tag=invoice-config