定制 sinergi/token 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

sinergi/token

最新稳定版本:0.1.0

Composer 安装命令:

composer require sinergi/token

包简介

PHP library to generate random strings

README 文档

README

Build Status

A handful of tools for PHP developers.

Requirements

This library uses PHP 5.4+.

Installation

It is recommended that you install the Token library through composer. To do so, add the following lines to your composer.json file.

{
    "require": {
       "sinergi/token": "dev-master"
    }
}

Usage

use Sinergi\Token\StringGenerator;

StringGenerator::randomAlnum(32);

Methods

  • randomAlnum Generate alpha-numeric string

    • Parameters
    • int $length The length of the string to generate
    • Optional bool $onlyUppercase Use only uppercase letters
  • randomAlpha Generate alpha string

    • Parameters
    • int $length The length of the string to generate
    • Optional bool $onlyUppercase Use only uppercase letters
  • randomNumeric Generate numeric string

    • Parameters
    • int $length The length of the string to generate
  • randomHexa Generate hexa string

    • Parameters
    • int $length The length of the string to generate
  • randomUuid Generate uuid string

  • randomId Generate id string

统计信息

  • 总下载量: 8.66k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 18
  • 点击次数: 0
  • 依赖项目数: 9
  • 推荐数: 0

GitHub 信息

  • Stars: 17
  • Watchers: 3
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-05-24