PHPackages                             yumaitau/laravel-random-token - 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. yumaitau/laravel-random-token

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

yumaitau/laravel-random-token
=============================

A simple package to generate random tokens (but safe) tokens to be used in user facing applications.

v1.0.0(8mo ago)09[4 PRs](https://github.com/yumaitau/laravel-random-token/pulls)MITPHPPHP ^8.2CI passing

Since Sep 3Pushed 1mo agoCompare

[ Source](https://github.com/yumaitau/laravel-random-token)[ Packagist](https://packagist.org/packages/yumaitau/laravel-random-token)[ Docs](https://github.com/yumaitau/laravel-random-token)[ RSS](/packages/yumaitau-laravel-random-token/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (12)Versions (6)Used By (0)

Laravel Random Token
====================

[](#laravel-random-token)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6ed752627f13bfee027bcebbe1c358a69ddc5495b17ad9617d555d2e3d8f9266/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f79756d61697461752f6c61726176656c2d72616e646f6d2d746f6b656e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yumaitau/laravel-random-token)[![GitHub Tests Action Status](https://camo.githubusercontent.com/e6746b19e744c12d6d8106b2e4212d4046c9bb2e95d46333429ed1dabb0aff87/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f79756d61697461752f6c61726176656c2d72616e646f6d2d746f6b656e2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/yumaitau/laravel-random-token/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/96f9d6d189fe45b0b23a5d2af2338ea0ff054c0bd585f27daa1900cf3f0adf5f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f79756d61697461752f6c61726176656c2d72616e646f6d2d746f6b656e2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/yumaitau/laravel-random-token/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/fa8274fdf09f9658b375946635648caa86ba476ab6c59d8d1c1a670b44e222f7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79756d61697461752f6c61726176656c2d72616e646f6d2d746f6b656e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yumaitau/laravel-random-token)

A simple package to generate random tokens (but safe) tokens to be used in user facing applications.

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

[](#installation)

You can install the package via composer:

```
composer require yumaitau/laravel-random-token
```

Optionally, you can publish the "bad words" file with:

```
php artisan vendor:publish --tag="random-token-translations"
```

Usage
-----

[](#usage)

```
$token = \YumaIt\RandomToken\RandomToken::generate(); // ABCD12
```

Optionally, you can pass the length of the token:

```
$token = \YumaIt\RandomToken\RandomToken::generate(8); // ABCD1234
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

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

License
-------

[](#license)

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

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance78

Regular maintenance activity

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

251d ago

### Community

Maintainers

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

---

Top Contributors

[![joshluongo](https://avatars.githubusercontent.com/u/1212412?v=4)](https://github.com/joshluongo "joshluongo (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravelYumaITlaravel-random-token

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/yumaitau-laravel-random-token/health.svg)

```
[![Health](https://phpackages.com/badges/yumaitau-laravel-random-token/health.svg)](https://phpackages.com/packages/yumaitau-laravel-random-token)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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