Download the PHP package aelora/truthy without Composer
On this page you can find all versions of the php package aelora/truthy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download aelora/truthy
More information about aelora/truthy
Files in aelora/truthy
Download aelora/truthy
More information about aelora/truthy
Files in aelora/truthy
Vendor aelora
Package truthy
Short Description Add a simple isTruthy and isFalsy function to see if things are true-like or false-like
License MIT
Package truthy
Short Description Add a simple isTruthy and isFalsy function to see if things are true-like or false-like
License MIT
Please rate this library. Is it a good library?
Informations about the package truthy
isTruthy / isFalsy
Simple PHP package to add an isTruthy
and isFalsy
function.
And yes, I know this is simple to almost a silly level. But it's something that I found myself adding to a bunch of different PHP projects so it seemed like a perfect bit of code to build into a package.
Installation
Install using composer
There are no settings.
Usage
Once loaded, there will be an isTruthy
and isFalsy
function in the global namespace.
The following values are considered falsy
- false
- null
- empty string
- 0
- 0.0
- empty array
- empty object
- strings "no", "n", "false", "f", "off", "null", "0", "0.0"
Everything else is considered truthy.
Tests
All versions of truthy with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
The package aelora/truthy contains the following files
Loading the files please wait ....