afaanbilal/php-random-string 问题修复 & 功能扩展

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

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

afaanbilal/php-random-string

最新稳定版本:0.1.0

Composer 安装命令:

composer require afaanbilal/php-random-string

包简介

Generate a random string of variable length from a given charset

README 文档

README

Author: Afaan Bilal

Introduction

PHP Random String is a composer package to generate random strings of variable length from a given charset.

Installation

composer require afaanbilal/php-random-string

Usage

// Default length is 12 characters
// Default charset is ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
(new \AfaanBilal\RandomString\RandomString())->generate();                                  
// -> Kfx70JiRotb4

// Generate a random string of 20 characters
(new \AfaanBilal\RandomString\RandomString(20))->generate();                                
// -> 92CYbvtEMXynllOZmNWK

// Generate a random string of 25 characters from capital alphabets only
(new \AfaanBilal\RandomString\RandomString(25, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'))->generate();  
// -> ZEIXAISRXEHFOADNXNHOIWKSF

Contributing

All contributions are welcome. Please create an issue first for any feature request or bug. Then fork the repository, create a branch and make any changes to fix the bug or add the feature and create a pull request. That's it! Thanks!

License

PHP Random String is released under the MIT License. Check out the full license here.

统计信息

  • 总下载量: 2.37k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-01-24