elfet/cherimola

This package is abandoned and no longer maintained. No replacement package was suggested.

A very useful things

Fund package maintenance!
antonmedv

v3.0.0 2015-03-04 08:39 UTC

This package is not auto-updated.

Last update: 2022-03-22 18:10:04 UTC


README

Build Status Code Coverage

A very useful things.

Installation

Require the library using Composer:

$ composer require elfet/cherimola

Documentation

It's so boring having only true and false constants. This library will help beat that boredom!

Now you can use positive boolean constants:

if ($status === ok) {
    ...
}
if ($everyThing === okay) {
    ...
}
if ($userSay === yes) {
    ...
}
if ($checkbox === ✔) {
    ...
}
if ($solution === correct) {
    ...
}
if ($attitude === 👍) {
    ...
}

And negative boolean constants:

if ($isUseful === no) {
    ...
}
if ($toBe === not) {
    ...
}
if ($orNot === ✘) {
    ...
}
if ($stealing === wrong) {
    ...
}
if ($attitude === 👎) {
    ...
}

And also uncertain constants:

if ($succesful === maybe) {
    ...
}
if ($save === perhaps) {
    ...
}
if (possibly) {
    ...
}
if (unlikely) {
    ...
}

The library is fully tested and has 100% code coverage.

License

Licensed under the MIT license.