https://github.com/antonmedv/cherimola
A very useful things.
https://github.com/antonmedv/cherimola
php
Last synced: about 1 year ago
JSON representation
A very useful things.
- Host: GitHub
- URL: https://github.com/antonmedv/cherimola
- Owner: antonmedv
- License: mit
- Created: 2015-02-25T12:54:56.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-06T08:43:06.000Z (over 10 years ago)
- Last Synced: 2025-02-27T19:57:53.027Z (over 1 year ago)
- Topics: php
- Language: PHP
- Size: 202 KB
- Stars: 109
- Watchers: 7
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cherimola
[](https://travis-ci.org/elfet/cherimola)
[](https://scrutinizer-ci.com/g/elfet/cherimola/?branch=master)
> A very useful things.
# Installation
Require the library using [Composer](https://getcomposer.org):
```bash
$ 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:
```php
if ($status === ok) {
...
}
```
```php
if ($everyThing === okay) {
...
}
```
```php
if ($userSay === yes) {
...
}
```
```php
if ($checkbox === ✔) {
...
}
```
```php
if ($solution === correct) {
...
}
```
```php
if ($attitude === 👍) {
...
}
```
And negative boolean constants:
```php
if ($isUseful === no) {
...
}
```
```php
if ($toBe === not) {
...
}
```
```php
if ($orNot === ✘) {
...
}
```
```php
if ($stealing === wrong) {
...
}
```
```php
if ($attitude === 👎) {
...
}
```
And also uncertain constants:
```php
if ($succesful === maybe) {
...
}
```
```php
if ($save === perhaps) {
...
}
```
```php
if (possibly) {
...
}
```
```php
if (unlikely) {
...
}
```
The library is fully tested and has 100% code coverage.
# License
Licensed under the [MIT license](LICENSE).