digicomp/sequence
Composer 安装命令:
composer require digicomp/sequence
包简介
Sequence is a very simple database agnostic but database based sequence generator
关键字:
README 文档
README
This is a very simple tool, helping in generation of gapless sequences. For this task it relies on key integrity of the database of your choice.
Usage is quite simple also:
/** * @param SequenceGenerator $sequenceGenerator */ public function __construct(SequenceGenerator $sequenceNumberGenerator) { $this->orderId = $sequenceGenerator->getNextNumberFor($this); }
getNextNumberFor allows you to give an object (which will be resolved to its FQCN) or a custom sequence name.
The SequenceCommandController helps you to set the last sequence number, in case of migrations or similar. See
./flow help sequence:setlastnumberfor if interested.
统计信息
- 总下载量: 2.36k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-06-24