Download the PHP package tebru/realtype without Composer
On this page you can find all versions of the php package tebru/realtype. 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 realtype
Realtype
A PHP library that gets the real type from a string. Sometimes doubles, integers, or booleans will exist inside a string. This library determines what type it really is and returns that.
Installation
composer require tebru/realtype
Usage
\Tebru\Realtype\Realtype::get('2.2'); // returns 2.2
\Tebru\Realtype\Realtype::get('2.0'); // returns 2.0
\Tebru\Realtype\Realtype::get('2'); // returns 2
\Tebru\Realtype\Realtype::get('0'); // returns 0
\Tebru\Realtype\Realtype::get('true'); // returns true
\Tebru\Realtype\Realtype::get('false'); // returns false
\Tebru\Realtype\Realtype::get('string'); // returns 'string'
\Tebru\Realtype\Realtype::get(2.2); // returns 2.2
All versions of realtype with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3
The package tebru/realtype contains the following files
Loading the files please wait ....