lubos/unique-key 问题修复 & 功能扩展

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

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

lubos/unique-key

Composer 安装命令:

composer require lubos/unique-key

包简介

CakePHP UniqueKey plugin which generates human readable unique keys

README 文档

README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

CakePHP 3.x UniqueKey plugin which generates human readable unique keys

Installation & Configuration

composer require lubos/unique-key

Load plugin in bootstrap.php file

Plugin::load('Lubos/UniqueKey');

Usage

Add behavior with your table

public function initialize(array $config)
{
    $this->addBehavior('Lubos/UniqueKey.UniqueKey');
}

Make sure your table has uid field

Generate number for later use

$invoice = $this->Invoices->newEntity();
$number = $this->Invoices->uniqueKey();

Bugs & Features

For bugs and feature requests, please use the issues section of this repository.

If you want to help, pull requests are welcome.
Please follow few rules:

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-17