PHPackages                             helmab/invoice-number - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. helmab/invoice-number

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

helmab/invoice-number
=====================

Generate invoice number for the Laravel Application

v1.0.0(4y ago)15MITPHPPHP ^7.1|^7.4|^8.0

Since Apr 30Pushed 4y ago1 watchersCompare

[ Source](https://github.com/HELMAB/invoice-number)[ Packagist](https://packagist.org/packages/helmab/invoice-number)[ Docs](https://github.com/helmab/invoice-number)[ RSS](/packages/helmab-invoice-number/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Invoice Number for Laravel
==========================

[](#invoice-number-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8ed93023b3cd5ce8aa0ee155ee18f9d668680a7303e9ff85f1f119e50d67e3d6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68656c6d61622f696e766f6963652d6e756d6265722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/helmab/invoice-number)[![Total Downloads](https://camo.githubusercontent.com/4d9f907f2dccbe6a158828df8d6fa856a27b8f8fb446a83824eb6812f50136ee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68656c6d61622f696e766f6963652d6e756d6265722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/helmab/invoice-number)

Generate the invoice number for Laravel application.

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

[](#installation)

You can install the package via composer:

```
composer require helmab/invoice-number
```

Publish `invoice-number.php` configuration file:

```
php artisan vendor:publish --provider="Helmab\InvoiceNumber\InvoiceNumberServiceProvider"
```

Usage
-----

[](#usage)

```
use Helmab\InvoiceNumber\Traits\HasInvoiceNumber;
use Illuminate\Database\Eloquent\Model;

class Invoice extends Model {

    use HasInvoiceNumber;

    protected $invoice_number_column = 'invoice_number';

    protected $fillable = [
        'invoice_number'
    ];
}
```

### Get Latest Invoice Number

[](#get-latest-invoice-number)

```
namespace App\Http\Controllers;

use Helmab\InvoiceNumber\InvoiceNumber;

class InvoiceController extends Controller {

    public function getLatestInvoiceNumber()
    {
        return (new InvoiceNumber())->invoiceNumber();
    }

}
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Mab Hel](https://github.com/helmab)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1476d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/471677a5a12c3838ee579ecfa5352c1def8b95314651338edd4bd62147a2394c?d=identicon)[HEL Mab](/maintainers/HEL%20Mab)

---

Top Contributors

[![HELMAB](https://avatars.githubusercontent.com/u/15307857?v=4)](https://github.com/HELMAB "HELMAB (9 commits)")

---

Tags

invoice numberhelmab

### Embed Badge

![Health badge](/badges/helmab-invoice-number/health.svg)

```
[![Health](https://phpackages.com/badges/helmab-invoice-number/health.svg)](https://phpackages.com/packages/helmab-invoice-number)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)[illuminate/cookie

The Illuminate Cookie package.

224.3M122](/packages/illuminate-cookie)

PHPackages © 2026

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