Download the PHP package czproject/assert without Composer
On this page you can find all versions of the php package czproject/assert. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package assert
CzProject\Assert
Assert helper, throws exceptions.
Installation
Download a latest package or use Composer:
CzProject\Assert
requires PHP 5.6.0 or later.
Usage
assert($value, $msg = NULL)
- checks if value isTRUE
bool($value, $msg = NULL)
- checks if value isbool
int($value, $msg = NULL)
- checks if value isint
intOrNull($value, $msg = NULL)
- checks if value isint|NULL
float($value, $msg = NULL)
- checks if value isfloat
floatOrNull($value, $msg = NULL)
- checks if value isfloat|NULL
number($value, $msg = NULL)
- checks if value isfloat|int
numberOrNull($value, $msg = NULL)
- checks if value isfloat|int|NULL
string($value, $msg = NULL)
- checks if value isstring
stringOrNull($value, $msg = NULL)
- checks if value isstring|NULL
type($value, $type, $msg = NULL)
- checks if value is instance of given typetypeOrNull($value, $type, $msg = NULL)
- checks if value is instance of given type orNULL
null($value, $msg = NULL)
- checks if value isNULL
in($value, $arr, $msg = NULL)
- checks if value is in arrayinArray($value, $arr, $msg = NULL)
- alias forAssert::in()
PhpStan extension
License: New BSD License
Author: Jan Pecha, https://www.janpecha.cz/
All versions of assert with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6.0
The package czproject/assert contains the following files
Loading the files please wait ....