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 3w 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 26% 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

1525d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15307857?v=4)[ហ៊ែល ម៉ាប់](/maintainers/helmab)[@HELMAB](https://github.com/HELMAB)

---

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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M278](/packages/illuminate-pipeline)[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.2M208](/packages/illuminate-broadcasting)[illuminate/redis

The Illuminate Redis package.

8314.6M371](/packages/illuminate-redis)

PHPackages © 2026

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