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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-invoicer

Invoicer - Invoice Generator Package for Laravel

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads composer.lock

This package is built for Invoice Management and Generation for Laravel 5.5+, 6.x, 7.x (not tested for lower versions)

Contents

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.


All versions of laravel-invoicer with dependencies

PHP Build Version
Package Version
Requires barryvdh/laravel-dompdf Version ^0.8.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dgvai/laravel-invoicer contains the following files

Loading the files please wait ....