zero-config/d-roll
Composer 安装命令:
composer create-project zero-config/d-roll
包简介
Dice rolling application
README 文档
README
D-Roll is a dice rolling application. It implements zero-config/d.
Installation
composer create-project --no-dev zero-config/d-roll
Rolling dice
The standalone application allows you to roll dice on-the-fly. It also tells you when you roll a CRIT.
Because some games require a high number of dice with different number of eyes, keeping track of them can be a pain and therefore, the application can interpret human readable dice notations:
You will notice that one of the inputs is 3d6+10 and the last input is 6. Under
the hood this gets added up to 4d6+10.
The notation is also very loose. That is why 2 D12 is interpreted as 2d12.
You will also notice that the interpreter sorts the dice by number of eyes. This adds to the readability of the output.
Tempting fate
Another part of the application will help you tempt fate. It is based on the Fate RPG.
One can supply a custom translation for fate values, to expand the list of
possibilities, by supplying a file with the --config option.
A custom configuration looks like the following:
{
"<": {
"label": "Everything is awesome!",
"color": "cyan"
},
"-1": {
"label": "Just about awesome!",
"color": "yellow"
},
"0": {
"label": "Awesome!",
"color": "green"
},
">": {
"label": "Ridiculously awesome!",
"color": "cyan"
}
}
Available colors are black, red, green, yellow, blue, magenta, cyan and white.
zero-config/d-roll 适用场景与选型建议
zero-config/d-roll 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 10 次下载、GitHub Stars 达 0, 最近一次更新时间为 2017 年 02 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「game」 「die」 「dice」 「d20」 「d」 「rolling」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 zero-config/d-roll 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 zero-config/d-roll 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 zero-config/d-roll 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dump Die package based on symfony/var-dumper.
Library that let you catch fatal errors
A library for simulating dice rolls written in PHP.
Dice Roller, PSR compatible fork from https://github.com/ringmaster/dicecalc
Use antecedent/patchwork to redefine `exit` and `die` for more robust PHPUnit testing.
Making it simple to integrate your application with Dice Jobs API.
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2017-02-11


