PHPackages                             mehdi0121/randcode - 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. mehdi0121/randcode

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

mehdi0121/randcode
==================

make Serial numbers,Strong passwords,Giftcard / Voucher codes code and set Length

1.0(3y ago)410MITPHPPHP ^7.4

Since Jul 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mehdi0121/randcode)[ Packagist](https://packagist.org/packages/mehdi0121/randcode)[ RSS](/packages/mehdi0121-randcode/feed)WikiDiscussions main Synced 1mo ago

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

Random Code Generator For Laravel
=================================

[](#random-code-generator-for-laravel)

[![Packagist Downloads](https://camo.githubusercontent.com/f471fe1486113861682dbec1c4ed7fd5010aa66a7317197ba96da20473fddced/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d65686469303132312f72616e64636f64653f636f6c6f723d677265656e)](https://camo.githubusercontent.com/f471fe1486113861682dbec1c4ed7fd5010aa66a7317197ba96da20473fddced/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d65686469303132312f72616e64636f64653f636f6c6f723d677265656e)[![GitHub](https://camo.githubusercontent.com/3a5be83e2d0f47400dda6ef2c8e4cf910970439d6bdf7062ccaed91cfe727048/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d65686469303132312f72616e64636f6465)](https://camo.githubusercontent.com/3a5be83e2d0f47400dda6ef2c8e4cf910970439d6bdf7062ccaed91cfe727048/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d65686469303132312f72616e64636f6465)[![Packagist Stars](https://camo.githubusercontent.com/6ccbb11bbe8fec200e2f57e58b31f6cd5f9e3cd7f47de8feea439d8698d6fa3a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6d65686469303132312f72616e64636f6465)](https://camo.githubusercontent.com/6ccbb11bbe8fec200e2f57e58b31f6cd5f9e3cd7f47de8feea439d8698d6fa3a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6d65686469303132312f72616e64636f6465)

**with this package you can make**

- Serial Numbers =&gt; `N9TT-9G0A-B7FQ-RANC`
- Strong passwords =&gt; `)8V)CC3[k6Hj`
- Giftcard / Voucher codes =&gt; `246-DFA-504`
- Length (8)=&gt;`gYtpe4NB`
- CustomPatern =&gt; `"xxx-xxx-xx" => D4f-8r7-De`

Security Policy
===============

[](#security-policy)

Supported Versions
------------------

[](#supported-versions)

VersionSupported1.0✅Instalition
===========

[](#instalition)

```
composer require mehdi0121/randcode

```

How to work!
============

[](#how-to-work)

**first use the namespace**

```
use Mehdi0121/Randcode;
```

Methods
-------

[](#methods)

> #### for make more than one code just add `count()` befor the methods and return
>  collections of code list
>
> [](#for-make-more-than-one-code-just-add-count-befor-the-methods-and-return--collections-of-code-list)

> ```
> echo RandCode::Count($count)->SerialNumber();
> ```

Serial Numbers
--------------

[](#serial-numbers)

---

```
echo RandCode::SerialNumber();
```

### retun

[](#retun)

```
 0F7N-66HS-F989-QSBQ

```

Strong passwords
----------------

[](#strong-passwords)

---

Default Length is :8

```
echo RandCode::Strong($Length=8);
```

### retun

[](#retun-1)

```
 K-QHYin&

```

Giftcard / Voucher codes
------------------------

[](#giftcard--voucher-codes)

---

Default Length is :8

```
echo RandCode::Giftcard();
```

### retun

[](#retun-2)

```
 643-YKY-292

```

Length
------

[](#length)

---

Letter and Digits

```
echo RandCode::Length($Length=8);
```

### retun

[](#retun-3)

```
 kK7ZbH40

```

CustomPatern
------------

[](#custompatern)

---

- Pattern:
    `xxx-xxx-xxx =>XDF-DFE-DSD `
    `yyy-yyy-yyy=>165-985-963`
    `xxx-yyy-xxx=>DFE-658-FDF`

```
echo RandCode::CustomPatern($Pattern);
```

### retun

[](#retun-4)

```
 XDF-DFE-DSD

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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

Every ~0 days

Total

2

Last Release

1401d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d622b35e5f8eb1587cc11100433fca036cbb8dd2cd856df7901f354433d4bcb?d=identicon)[mehdi0121](/maintainers/mehdi0121)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/mehdi0121-randcode/health.svg)

```
[![Health](https://phpackages.com/badges/mehdi0121-randcode/health.svg)](https://phpackages.com/packages/mehdi0121-randcode)
```

###  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)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[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)

PHPackages © 2026

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