Looking to hire Laravel developers? Try LaraJobs

laravel-random-token maintained by yumaitau

Description
A simple package to generate random tokens (but safe) tokens to be used in user facing applications.
Author
Last update
2026/01/12 05:50 (dev-main)
License
Downloads
9

Comments
comments powered by Disqus

Laravel Random Token

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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

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

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

Optionally, you can pass the length of the token:

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

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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