mehdi0121 / randcode
make Serial numbers,Strong passwords,Giftcard / Voucher codes code and set Length
1.0
2022-07-17 10:13 UTC
Requires
- php: ^7.4
- illuminate/support: ^7|^8|^9
Suggests
- laravel/framework: Tested on laravel
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