mehdi0121/randcode 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mehdi0121/randcode

Composer 安装命令:

composer require mehdi0121/randcode

包简介

make Serial numbers,Strong passwords,Giftcard / Voucher codes code and set Length

README 文档

README

Packagist Downloads GitHub Packagist Stars

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-01-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固