muath-ye/unique-random-number
Composer 安装命令:
composer require muath-ye/unique-random-number
包简介
Generate ranged digits random number from table id, so its unique
README 文档
README
Generate ranged digits random number from table id, so its unique.
Requirements
Installation
To install through composer, run the following command from terminal:
composer require "muath-ye/unique-random-number"
For laravel users
if you are using laravel project, and you want to use it without declaration the use statement. Register Random alias on your config/app.php file.
'aliases' => [ // ..., 'Random' => \Muathye\UniqueRandomNumber\Random::class ]
Usage
<?php // You don't need to declare this use statement if you registered the Random class in config/app.php use Muathye\UniqueRandomNumber\Random; Random::generate(2, 3, 6); // Out Put => 628 Random::generate(1, 4, 6); // Out Put => 8314 Random::generate(1624, 4, 6); // Out Put => 16248 Random::generate(54627, 4, 6); // Out Put => 546276 Random::generate(54627, 4, 6); // Out Put => 546276
Security
If you discover any security-related issues, please email muathye@gmail.com instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-07-23