PHPackages                             pixiucz/invoices - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. pixiucz/invoices

ActivePackage

pixiucz/invoices
================

Empty

1.13(8y ago)01671[2 issues](https://github.com/pixiucz/invoices/issues)MITHTML

Since Aug 2Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pixiucz/invoices)[ Packagist](https://packagist.org/packages/pixiucz/invoices)[ RSS](/packages/pixiucz-invoices/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (2)Versions (19)Used By (0)

Installation
------------

[](#installation)

- Require package via composer

```
composer require pixiucz/invoices

```

- And then register `InvoicesServiceProvider` in your `config\app.php` (laravel) or in boot method of your October's `Plugin.php`

```
Pixiucz\Invoices\InvoicesServiceProvider::class,

```

- Once installed, you are required to run migrations – either by running

```
php artisan migrate

```

or using provided cli command

```
php artisan invoices:migrate

```

(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

```
php artisan invoices:makePattern “name_of_pattern” “pattern”

```

- Your pattern have to be string with two slots -&gt; {year} where correct year will be inserted and {number} for invoice number.
    - Example:

    ```
    php artisan invoices:makePattern "eshop" "My-eshop-invoice-{year}/{number}"

    ```

Basic usage
-----------

[](#basic-usage)

- Once instantiated, `InvoiceGenerator` provides public method `generateInvoice`
- This method requires two parameters, two other are optional

1. **String** name of pattern (invoice line) (**required**)
2. **Array** of all variables that you want to be printed in provided tempalte. (**required**)
3. **String** path to your `htm` file that will serve as template. This template should use [Twig syntax](https://twig.symfony.com/doc/2.x/templates.html) and at very least define `{{ invoice_number }}` where generated invoice number will be printed. (**optional**)
4. **int** invoice number, this will bypass inner invoice number generator (**optional**)

- Method **returns array** with `'invoice_number'` and rendered `'pdf'` key-value pairs.

### Example

[](#example)

```
$invoice = $invoiceGenerator->generateInvoice("eshop", $templateVariables);
```

Format of array with variables (all optional)
---------------------------------------------

[](#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
    - …
- delivery\_option
    - name
    - price
    - price\_without\_tax
    - tax
- sum
    - sum\_without\_tax
    - sum\_tax\_only
    - sum
- currency (currency symbol)
- status \[‘canceled’, ‘refunded’\] -&gt; leave empty when neither of these

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~8 days

Recently: every ~27 days

Total

15

Last Release

3081d ago

Major Versions

0.0.1 → 1.022017-08-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c7ef30baec908d3f1a9696e9d17a68dc94293d94a9351a4c1fe2e373035bbb1?d=identicon)[pixiu](/maintainers/pixiu)

---

Top Contributors

[![ChvilaMartin](https://avatars.githubusercontent.com/u/17902085?v=4)](https://github.com/ChvilaMartin "ChvilaMartin (25 commits)")

### Embed Badge

![Health badge](/badges/pixiucz-invoices/health.svg)

```
[![Health](https://phpackages.com/badges/pixiucz-invoices/health.svg)](https://phpackages.com/packages/pixiucz-invoices)
```

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[42coders/document-templates

Document template management package.

19939.5k](/packages/42coders-document-templates)[abydahana/aksara

Aksara is a CodeIgniter based CRUD Toolkit you can use to build complex applications become shorter, secure and more reliable just in a few lines of code. Serving both CMS or Framework, produce both HEADLESS (RESTful API) or TRADITIONAL (Browser Based), just by writing single controller. Yet it's reusable, scalable and ready to use!

1101.2k](/packages/abydahana-aksara)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
