jolicode/ffi-uuid
最新稳定版本:v1.0.1
Composer 安装命令:
composer require jolicode/ffi-uuid
包简介
Bind libuuid to PHP thanks to FFI
README 文档
README
This repository contains a binding of the libuuid library with PHP thanks to PHP/FFI. So this requires PHP 7.4 to run.
For now this is mostly a proof of concept to demonstrate the power of the FFI extension. In future, if and when the performance of FFI improves, it could be a good alternative to the PECL UUID package.
Further details can be found in the following blog post PHP 7.4 FFI: What you need to know .
Installation
composer require jolicode/ffi-uuid
Usage
use JoliCode\Uuid\UuidGenerator; $generator = new UuidGenerator(); echo $generator->v1(); echo $generator->v3('something'); echo $generator->v4(); echo $generator->v5('something');
Resources
统计信息
- 总下载量: 119.95k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 40
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-11-25