Download the PHP package pixiucz/invoices without Composer
On this page you can find all versions of the php package pixiucz/invoices. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package invoices
Installation
-
Require package via composer
-
And then register
InvoicesServiceProvider
in yourconfig\app.php
(laravel) or in boot method of your October'sPlugin.php
- Once installed, you are required to run migrations – either by running
or using provided cli command
(this command will migrate only package’s table)
-
You have to create at least one named pattern, that will be used on invoices. You can create pattern using
- Your pattern have to be string with two slots -> {year} where correct year will be inserted and {number} for invoice number.
- Example:
Basic usage
- Once instantiated,
InvoiceGenerator
provides public methodgenerateInvoice
- This method requires two parameters, two other are optional
- String name of pattern (invoice line) (required)
- Array of all variables that you want to be printed in provided tempalte. (required)
- String path to your
htm
file that will serve as template. This template should use Twig syntax and at very least define{{ invoice_number }}
where generated invoice number will be printed. (optional) - int invoice number, this will bypass inner invoice number generator (optional)
- Method returns array with
'invoice_number'
and rendered'pdf'
key-value pairs.
Example
Format of array with variables (all optional)
- Company
- name
- zip
- address
- ico
- dic
- ic_dph
- bank
- account_number
- iban
- swift
- delivery_address
- first_name
- last_name
- address
- zip
- city
- country
- billing_address
- first_name
- last_name
- address
- zip
- city
- country
- ic
- dic
- updated_at
- variants
- variant
- ean
- name
- quantity
- price
- price_without_tax
- sum_without_tax
- tax
- sum
- …
- variant
- delivery_option
- name
- price
- price_without_tax
- tax
- sum
- sum_without_tax
- sum_tax_only
- sum
- currency (currency symbol)
- status [‘canceled’, ‘refunded’] -> leave empty when neither of these
All versions of invoices with dependencies
PHP Build Version
Package Version
The package pixiucz/invoices contains the following files
Loading the files please wait ....