PHPackages                             saade-package/generate-unique-id - 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. saade-package/generate-unique-id

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

saade-package/generate-unique-id
================================

A package to generate unique ID

v1.0.0(3y ago)197MITPHPPHP &gt;=7.0

Since Mar 26Pushed 2y agoCompare

[ Source](https://github.com/Moemen12/ID-GENREATOR)[ Packagist](https://packagist.org/packages/saade-package/generate-unique-id)[ RSS](/packages/saade-package-generate-unique-id/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

ID-GENREATOR 😃
==============

[](#id-genreator-)

it generates an private id for database

This code is using in laravel application to generate an unique id and also it will check if the generated id

is the same in database it will generate a new . 😉

[![](https://camo.githubusercontent.com/5a580364ff3bd338370177402c5c050ff81a1933927e1e475c920c90850b38a3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d4646324432303f7374796c653d666f722d7468652d6261646765266c6f676f3d6c61726176656c266c6f676f436f6c6f723d7768697465)](https://laravel.com/docs/10.x)[![](https://camo.githubusercontent.com/d282cc3193faee11ee32307d0c4c9d809e8fafa4b3a8c12c6afbf35d4f7ec617/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d3737374242343f7374796c653d666f722d7468652d6261646765266c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://www.php.net/)[![](https://camo.githubusercontent.com/4d4a540f0634a4d031f64b08599ce09a2b9d43e11bb96e1923d2b1cf4ead11f4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d7953514c2d3030354338343f7374796c653d666f722d7468652d6261646765266c6f676f3d6d7973716c266c6f676f436f6c6f723d7768697465)](https://www.mysql.com/)

Installing :
============

[](#installing-)

```
composer require saade-package/generate-unique-id

```

### Now how to use it ?

[](#now-how-to-use-it-)

For example if you created an id-generator column in post table, you can make an private id to the post like this :

```
    public function store(Request $request){

        DB::table('generated_id')->insert([
            'generatedID'=>generateUniqueId('generatedIdTable','generatedIdColumn')
        ]);

    }
```

OptionDescriptiontable name(string &amp; require) it is the table name where You want to insert the data in it.column name(string &amp; require) it is the table column where You want to insert the data in it.The generate function generateUniqueId function takes 2 arguments , the first argument is the Table name and

the second argument is the column name where you want to insert the uniqueId .

Here this code will generate an id from 25 characters and inserts it in database .

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

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

1141d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1af4810a0355e4ba21feada2b0e4f14438a8e64372c3714c126ee69d2df8eff1?d=identicon)[moemen saade](/maintainers/moemen%20saade)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/saade-package-generate-unique-id/health.svg)

```
[![Health](https://phpackages.com/badges/saade-package-generate-unique-id/health.svg)](https://phpackages.com/packages/saade-package-generate-unique-id)
```

PHPackages © 2026

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