承接 thoom/generator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

thoom/generator

Composer 安装命令:

composer require thoom/generator

包简介

PHP 5.3 classes used to generate strings such as UUID and alphanumeric

README 文档

README

These classes are static classes that generate various values that you may need in the an application. I frequently use the RandomString methods to build temporary passwords, and the Uuid class to create unique ids to entities that are put/posted to a collections url.

Usage

To create a Uuid:

$uuid = Thoom\Generator\Uuid::v4();
//outputs something like: ef8dbbaf-681a-4329-b58c-262a6c2c1fb4

To create a random alphanumeric string, lowercase only, 16 characters:

use Thoom\Generator\RandomString;

// .... code ... //

$string = RandomString::alnum(16, RandomString::ALPHANUM_LOWER);
//outputs something like: asb0z93dg91st73l

To add custom characters (like a dash) to a random string:

use Thoom\Generator\RandomString;

// .... code ... //

$string = RandomString::user(16, array('-'), RandomString::ALPHANUM_LOWER);
//outputs something like: p2am-53s9xrzb63n

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-01-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固