elfet / cherimola
此包已被放弃,不再维护。未建议替换包。
非常实用的东西
v3.0.0
2015-03-04 08:39 UTC
Requires
- php: >=5.2.1
Requires (Dev)
- phpunit/phpunit: ~4.5
This package is not auto-updated.
Last update: 2022-03-22 18:10:04 UTC
README
非常实用的东西。
安装
使用 Composer 安装库
$ composer require elfet/cherimola
文档
只有 true
和 false
常量真是太无聊了。这个库将帮助打破这种无聊!
现在您可以使用正布尔常量
if ($status === ok) { ... }
if ($everyThing === okay) { ... }
if ($userSay === yes) { ... }
if ($checkbox === ✔) { ... }
if ($solution === correct) { ... }
if ($attitude === 👍) { ... }
和负布尔常量
if ($isUseful === no) { ... }
if ($toBe === not) { ... }
if ($orNot === ✘) { ... }
if ($stealing === wrong) { ... }
if ($attitude === 👎) { ... }
以及不确定的常量
if ($succesful === maybe) { ... }
if ($save === perhaps) { ... }
if (possibly) { ... }
if (unlikely) { ... }
该库经过全面测试,代码覆盖率100%。
许可证
在 MIT 许可证 下授权。