PHPackages                             ibrahimhalilucan/keygen - 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. ibrahimhalilucan/keygen

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

ibrahimhalilucan/keygen
=======================

Generator is Char, Float, Integer, Serial and Token types of data for use in Laravel projects. It simplifies data generation processes and is an important tool for use in your projects.

v1.0.0(3y ago)22.5k↓50%MITPHPPHP &gt;=8.0

Since Jan 20Pushed 3y ago1 watchersCompare

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

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

[![Keygen for Laravel](assets/img/package.png)](assets/img/package.png)

Keygen
------

[](#keygen)

Keygen is a PHP package that generates random character sequences.

Requirement
-----------

[](#requirement)

> Laravel &gt;= 9.0
>
> Php &gt;= 8.0.0

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

[](#installation)

You can install the package via composer:

```
$ composer require ibrahimhalilucan/keygen
```

Usage
-----

[](#usage)

To import the right class:

```
use IbrahimHalilUcan\Keygen\Keygen;
```

### Alphabet

[](#alphabet)

```
// Generates a random string based on the preset ASCII codes, prefix and suffix
// e.g ucdftrvs

Keygen::alphabet()->generate(); // e.g uomucgny
Keygen::alphabet()->length(5)->generate(); // e.g uaeem
Keygen::alphabet()->alpha()->generate(); // e.g lksEFGsC
Keygen::alphabet()->alphaLowerCase()->generate(); // e.g wfhilspk
Keygen::alphabet()->alphaUpperCase()->generate(); // e.g CIZKNJDF
Keygen::alphabet()->lower()->generate(); // e.g bibdbbiv
Keygen::alphabet()->upper()->generate(); // e.g XSJQWUGT
Keygen::alphabet()->numeric()->generate(); // e.g 55478739
Keygen::alphabet()->alphaNumeric()->generate(); // e.g 8k1Egrab
Keygen::alphabet()->prefix('ihu-')->suffix('-pi')->generate(); // e.g ihu-bapcqajv-pi"
Keygen::alphabet()->specialCharacters()->generate(); // e.g &'],\*+)
```

### Float

[](#float)

```
// Generate a random float between min and max (considering $min and $max attribute)
// e.g 85.38

Keygen::float()->generate(); // e.g 17.25
Keygen::float()->min(4)->decimals(2)->generate(); // e.g 74.74
Keygen::float()->max(45)->decimals(2)->generate(); // e.g 1.26
Keygen::float()->min(4)->max(45)->generate(); // e.g 42.09
```

### Integer

[](#integer)

```
// Generate a random int between min and max (considering $min and $max attribute)
// e.g 5423

Keygen::numeric()->generate(); // e.g 84184
Keygen::numeric()->min(4)->generate(); // e.g 64321
Keygen::numeric()->max(45)->generate(); // e.g 41
Keygen::numeric()->min(4)->max(45)->generate(); // e.g 36
```

### Serial

[](#serial)

```
// Generates a random string based on the preset ASCII codes, prefix, suffix, parts, and separator.
// e.g thabif-ndqtmh-zekdoq-vlgpob

Keygen::serial()->generate(); // e.g puqtfa-vuxpct-lmhqkm-grxgoz
Keygen::serial()->alpha()->generate(); // e.g QjHDNT-KQmHGj-WDKFOu-CmICNC
Keygen::serial()->lower()->generate(); // e.g bqrgag-ggmguz-swwzil-tzbtrv
Keygen::serial()->upper()->generate(); // e.g JBAPMP-UWAQOC-GEZZQL-FRFXOP
Keygen::serial()->numeric()->generate(); // e.g 818299-843464-198220-761544
Keygen::serial()->alphaNumeric()->generate(); // e.g BabsKi-Xyvvv8-mZIRpm-5LcDyq
Keygen::serial()->length(4)->parts(8)->generate(); // e.g diso-buvg-gsdg-gjca-mqay-vtxy-ovre-nzth
Keygen::serial()->prefix('ihu-')->suffix('-pi')->generate(); // e.g ihu-yvyqar-bpwcdp-zskntq-xdirar-pi
```

### Token

[](#token)

```
// Generates a random token using base64 encoding and str_shuffle.
// e.g f/Oio2HmQID6Pd1SW6kQkDtzCFbgLaG0z+0/Z3R0iiG/bHeJlyFq330/npFq2A6S

Keygen::token()->generate(); // e.g H8dtuud/5OZatJgv9JEclexIO87EjzFi2mfiKNO7opit/LQdhvpuTPGG5lUnIbaZ
Keygen::token()->length(32)->generate(); // e.g 6oEumsgigVtla4LtUVQ4jogGtYyw5gl1"
Keygen::token()->prefix("ihu-")->suffix("-pi")->generate(); // e.g ihu-Y9gbdyInr4TIyXu+r+tLMt6H1uSWQx73zSA8qaB9zx/nFQnasNjaIoS60wue6iYV-pi
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Any ideas are welcome. Feel free to submit any issues or pull requests. 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)

- [İbrahim Halil Uçan](https://github.com/ibrahimhalilucan)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

1205d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0105acdfb20caf5d8d805c53f21812adf3ff6f52c000620a8e5ae8147afe8a80?d=identicon)[ibrahimhalilucan](/maintainers/ibrahimhalilucan)

---

Top Contributors

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

---

Tags

generatoridentifierkeygenlaravellibrarypackagephpphplaravelpackagelibrarygeneratoridentifierkeyuniquepackagistkeygendatageneration

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ibrahimhalilucan-keygen/health.svg)

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

###  Alternatives

[okipa/laravel-table

Generate tables from Eloquent models.

56752.8k](/packages/okipa-laravel-table)[gladcodes/keygen

A fluent PHP random key generator.

119668.9k2](/packages/gladcodes-keygen)[panphp/pan

A simple, lightweight, and privacy-focused product analytics php package.

1.2k94.6k5](/packages/panphp-pan)[cybercog/laravel-paket

Composer personal web interface. Manage Laravel dependencies without switching to command line!

1753.3k](/packages/cybercog-laravel-paket)[rumenx/php-feed

Framework-agnostic PHP Feed generator for Laravel, Symfony, and more.

3652.3k](/packages/rumenx-php-feed)[okipa/laravel-form-components

Ready-to-use and customizable form components.

198.0k1](/packages/okipa-laravel-form-components)

PHPackages © 2026

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