PHPackages                             yearul/lara-invoice - 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. [Payment Processing](/categories/payments)
4. /
5. yearul/lara-invoice

ActiveLibrary[Payment Processing](/categories/payments)

yearul/lara-invoice
===================

The Laravel Invoice Number Generator is a powerful and flexible package that simplifies the process of generating unique invoice numbers within Laravel applications. It provides a convenient solution for managing invoice numbers, ensuring they are unique, sequential, and customizable according to your specific requirements.

v0.1.0(3y ago)2304MITPHPPHP &gt;=7.4|^8.0

Since May 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/islamyearul/lara-invoice)[ Packagist](https://packagist.org/packages/yearul/lara-invoice)[ Docs](https://github.com/islamyearul/lara-invoice)[ RSS](/packages/yearul-lara-invoice/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (13)Versions (2)Used By (0)

This is my package lara-invoice
===============================

[](#this-is-my-package-lara-invoice)

[![Latest Version on Packagist](https://camo.githubusercontent.com/45e4527d4ab559ac49e52be53d49862f130bd008dd909a92392aca1e36db7fb8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f79656172756c2f6c6172612d696e766f6963652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yearul/lara-invoice)

[![Total Downloads](https://camo.githubusercontent.com/20dbc50512bd2178377a3bdb3b0735e6b2518d86194496254d7395c7d6b5e607/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79656172756c2f6c6172612d696e766f6963652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yearul/lara-invoice)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Laravel Version 10.\*
=====================

[](#laravel-version-10)

Description
-----------

[](#description)

Title: Laravel Invoice Number Generator

The Laravel Invoice Number Generator is a powerful and flexible package that simplifies the process of generating unique invoice numbers within Laravel applications. It provides a convenient solution for managing invoice numbers, ensuring they are unique, sequential, and customizable according to your specific requirements.

Features:

Unique Invoice Number Generation: The package generates unique invoice numbers to avoid conflicts and ensure accurate record-keeping.

Sequential Numbering: The invoice numbers are generated in a sequential manner, making it easier to track and organize invoices.

Customizable Formats: You can define custom formats for your invoice numbers, allowing you to incorporate various elements such as prefixes, suffixes, date formats, and sequential numbering patterns.

Integration with Laravel Ecosystem: The package seamlessly integrates with Laravel, leveraging its powerful features and ecosystem. It utilizes Laravel's model events and database migrations for easy setup and configuration.

Configurable Options: The package provides various configuration options, including the ability to set the initial invoice number, configure the length of invoice numbers, define prefix and suffix values, and specify the date format.

Multiple Invoice Number Generators: You can create multiple invoice number generators with different configurations to handle specific use cases within your application. For example, you might have separate invoice numbering for different branches or departments.

Extensible and Customizable: The package is designed to be extensible, allowing you to customize its functionality to meet your specific needs. You can override default behaviors, implement your own generation algorithms, or extend existing classes.

Well-documented and Supported: The Laravel Invoice Number Generator package is thoroughly documented, providing clear instructions on installation, configuration, and usage. Additionally, it benefits from an active community and ongoing support to address any issues or questions you may have.

By using the Laravel Invoice Number Generator package, you can streamline your invoicing process, ensure accurate and unique invoice numbers, and improve overall organization and tracking of your financial records.

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

[](#installation)

You can install the package via composer:

```
composer require yearul/lara-invoice
```

You can publish the config file with:

```
php artisan vendor:publish --tag="lara-invoice-config"
```

This is the contents of the published config file:

```
return [

    /*
    |--------------------------------------------------------------------------
    | Invoice NO Generator Config
    |--------------------------------------------------------------------------
    |
    | This is the config file for Invoice NO generator. You can override
    | this config file by placing it in your application's config directory
    | and change the values as per your need.
    |
    */

     /*
    |--------------------------------------------------------------------------
    | Default Pad Length
    |--------------------------------------------------------------------------
    |
    | If no  pad length is provided to the generate method, this value will be used
    |
    */
    "pad_len" => 5,

    /*
    |--------------------------------------------------------------------------
    | Default Prefix
    |--------------------------------------------------------------------------
    |
    | If no prefix is provided to the generate method, this value will be used
    |
    */
    "prefix" => "YEA",
    /*
    |--------------------------------------------------------------------------
    | Default year and year_val
    |--------------------------------------------------------------------------
    |
    | If no year and year_val is provided to the generate method, this value will be used
    |
    */

    "year" => true,
    "year_val" => date('Y'),

    /*
    |--------------------------------------------------------------------------
    | Default  pad string
    |--------------------------------------------------------------------------
    |
    | If no pad string is provided to the generate method, this value will be used
    |
    */

    "pad_string" => 0,   // 0, #, *, $.......etc
    /*
    |--------------------------------------------------------------------------
    | Default  pad_direction
    |--------------------------------------------------------------------------
    |
    | If no pad_direction is provided to the generate method, this value will be used
    |
    */

    "pad_direction" => STR_PAD_LEFT,   // STR_PAD_LEFT, STR_PAD_RIGHT

];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="lara-invoice-views"
```

Usage
-----

[](#usage)

```
use Yearul\LaraInvoice\LaraInvoice; // import this in the top of the class
 $value = LaraInvoice::generate(2); // 2 is input value
echo $value;  //Output  YEA-2023-00002
//Generate Method
//  generate($input,  $pad_len = null, $pad_string = null, $prefix = null, $year = null)
 // the generate method received 5 value, $input value is mandatory and others value not mandatory( thoes can get from config file and also Manual Input)
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [islamyearul](https://github.com/islamyearul)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

1148d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f90dc9e13e6f54c5c091359406b69c36fe50da8cc260cad8e113d82674489d2?d=identicon)[islamyearul](/maintainers/islamyearul)

---

Top Contributors

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

---

Tags

laravelinvoiceyearullara-invoiceinvoice numberlara invoice number generatorinvoice number generatorinvoice number generator laravelinvoice number generator laravel packageinvoice number generator laravel package yearulinvoice number generator laravel package yearul islaminvoice number generator laravel package yearul islam yearul

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/yearul-lara-invoice/health.svg)

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

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M46](/packages/spatie-laravel-pdf)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M97](/packages/dedoc-scramble)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k36](/packages/spatie-laravel-passkeys)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

44855.7k](/packages/harris21-laravel-fuse)

PHPackages © 2026

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