mehdi0121/randcode
Composer 安装命令:
composer require mehdi0121/randcode
包简介
make Serial numbers,Strong passwords,Giftcard / Voucher codes code and set Length
README 文档
README
with this package you can make
-
Serial Numbers =>
N9TT-9G0A-B7FQ-RANC -
Strong passwords =>
)8V)CC3[k6Hj -
Giftcard / Voucher codes =>
246-DFA-504 -
Length (8)=>
gYtpe4NB -
CustomPatern =>
"xxx-xxx-xx" => D4f-8r7-De
Security Policy
Supported Versions
| Version | Supported |
|---|---|
| 1.0 | ✅ |
Instalition
composer require mehdi0121/randcode
How to work!
first use the namespace
use Mehdi0121/Randcode;
Methods
for make more than one code just add
count()befor the methods and return
collections of code list
echo RandCode::Count($count)->SerialNumber();
Serial Numbers
echo RandCode::SerialNumber();
retun
0F7N-66HS-F989-QSBQ
Strong passwords
Default Length is :8
echo RandCode::Strong($Length=8);
retun
K-QHYin&
Giftcard / Voucher codes
Default Length is :8
echo RandCode::Giftcard();
retun
643-YKY-292
Length
Letter and Digits
echo RandCode::Length($Length=8);
retun
kK7ZbH40
CustomPatern
- Pattern:
xxx-xxx-xxx =>XDF-DFE-DSD
yyy-yyy-yyy=>165-985-963
xxx-yyy-xxx=>DFE-658-FDF
echo RandCode::CustomPatern($Pattern);
retun
XDF-DFE-DSD
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-01-30