PHPackages                             starmoozie/id-generator - 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. starmoozie/id-generator

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

starmoozie/id-generator
=======================

laravel generate custom ID

1.0.0(5y ago)041MITPHPPHP &gt;=5.6.0

Since Mar 17Pushed 5y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (3)Used By (0)

### How to

[](#how-to)

#### Generate increment custom id pada laravel

[](#generate-increment-custom-id-pada-laravel)

```
# Tambahkan pada model

use Starmoozie\IdGenerator\IdGenerator;

public static function boot()
{
    parent::boot();
    self::creating(function ($model) {
        $config    = ['table' => $this->table, 'length' => 12, 'prefix' =>date('ymd')];
        $model->id = IdGenerator::generate($config);
    });
}

# Hasil
200124000001
200124000002
200124000003
200124000004
............
```

### SQL Support

[](#sql-support)

- Mysql
- PostgreSQL

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

1879d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce7d50597c3a149b74f21fece17d80003a6d2648392cc534e8039a27de682005?d=identicon)[starmoozie](/maintainers/starmoozie)

---

Top Contributors

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

---

Tags

laravel-id-generatorstarmoozielaravel generator id

### Embed Badge

![Health badge](/badges/starmoozie-id-generator/health.svg)

```
[![Health](https://phpackages.com/badges/starmoozie-id-generator/health.svg)](https://phpackages.com/packages/starmoozie-id-generator)
```

###  Alternatives

[omaressaouaf/laravel-id-generator

Generate custom incremental unique ids for Laravel

566.3k](/packages/omaressaouaf-laravel-id-generator)

PHPackages © 2026

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