ramsey/uuid-console
Composer 安装命令:
composer create-project ramsey/uuid-console
包简介
A console application for generating UUIDs with ramsey/uuid.
关键字:
README 文档
README
A console application for generating UUIDs with ramsey/uuid
About
ramsey/uuid-console is a console application for generating UUIDs with ramsey/uuid.
This project adheres to a code of conduct. By participating in this project and its community, you are expected to uphold this code.
Installation
Install this package as a dependency using Composer.
composer require ramsey/uuid-console
This will install a reference to the console tool in ./vendor/bin/uuid.
Usage
If installed in your project, you may execute the console application from the command line:
$ ./vendor/bin/uuid
If installed globally using Composer, ensure your global Composer installation
is in your PATH (it's usually somewhere like ~/.composer/vendor/bin). Then,
you may execute it:
$ uuid
Please be aware that some systems may already have a command line application
named uuid installed, so this might create a conflict if anything using your
PATH expects the other uuid tool.
You can generate UUIDs:
$ ./vendor/bin/uuid generate
afe1296a-660b-11e5-bd9f-3c15c2caed47
By default, the application generates version 1 (time-based) UUIDs, but you may specify other versions:
$ ./vendor/bin/uuid generate 4
54478f1d-8b9d-4bf9-8767-1a23010d48a7
You may also decode UUIDs to get information about them:
$ ./vendor/bin/uuid decode afe1296a-660b-11e5-bd9f-3c15c2caed47
========= ========== =========================================
encode: STR: afe1296a-660b-11e5-bd9f-3c15c2caed47
INT: 233784006064090443909084029429027106119
decode: variant: RFC 4122
version: 1 (time and node based)
content: time: 2015-09-28T18:06:49+00:00
clock: 15775 (usually random)
node: 3c:15:c2:ca:ed:47
========= ========== =========================================
For help, just type ./vendor/bin/uuid and read the help information.
Contributing
Contributions are welcome! To contribute, please familiarize yourself with CONTRIBUTING.md.
Coordinated Disclosure
Keeping user information safe and secure is a top priority, and we welcome the contribution of external security researchers. If you believe you've found a security issue in software that is maintained in this repository, please read SECURITY.md for instructions on submitting a vulnerability report.
Copyright and License
The ramsey/uuid-console library is copyright © Ben Ramsey and licensed for use under the MIT License (MIT). Please see LICENSE for more information.
ramsey/uuid-console 适用场景与选型建议
ramsey/uuid-console 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 156.32k 次下载、GitHub Stars 达 39, 最近一次更新时间为 2015 年 06 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cli」 「console」 「uuid」 「identifier」 「guid」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ramsey/uuid-console 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ramsey/uuid-console 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ramsey/uuid-console 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This class provides you with an easy-to-use interface to progress bars.
A Laravel package to retrieve data from Google Search Console
Additional artisan commands for Laravel
DrUUID RFC 4122 library for PHP
Trait to generate uuid when creating models
A table generator class for the PHP CLI.
统计信息
- 总下载量: 156.32k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 41
- 点击次数: 23
- 依赖项目数: 5
- 推荐数: 2
其他信息
- 授权协议: MIT
- 更新时间: 2015-06-22