yumaitau / laravel-random-token
A simple package to generate random tokens (but safe) tokens to be used in user facing applications.
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 2
pkg:composer/yumaitau/laravel-random-token
Requires
- php: ^8.2
- illuminate/contracts: ^11.0||^12.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.8
- orchestra/testbench: ^10.0.0||^9.0.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
This package is auto-updated.
Last update: 2025-10-13 04:52:32 UTC
README
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.