pg_ito/fast_ulid
最新稳定版本:v1.0.2
Composer 安装命令:
composer require pg_ito/fast_ulid
包简介
implement fast ULID generator for PHP
README 文档
README
implement of fast ULID for php
install
type require command
$ composer require pg-ito/fast_ulid:dev-main
usage
$loader = require_once __DIR__.'/vendor/autoload.php';
use \PgIto\FastUlid\FastUlid;
echo FastUlid::gen().PHP_EOL;
// 01GBTYCV1VFFEC1VTRXFJ2VPN7
benchmark
$ php -v
PHP 8.1.2 (cli) (built: Jul 21 2022 12:10:37) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
with Zend OPcache v8.1.2, Copyright (c), by Zend Technologies
$ php bench.php
number of generated ids 1000000
elapsed 2.1725078 Sec.
2172.5078 nSec/generate
test
$ ./vendor/bin/phpunit ./tests/
统计信息
- 总下载量: 2.66k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-29