Creating confusion since 2020. Lets make PHP a bit more "typed" (ROFL)....
The code is currently released under the MIT license.
You can install the package via composer:
$ composer install fighttheice/datatypes
Tests are included in the tests/ directory. If you go to the root of the project and run ./vendor/bin/phpunit all the tests will run.
Datatype | Type |
---|---|
Boolean | scalar |
Integer | scalar |
Float | scalar |
String | scalar |
Array | compound |
Object | compound |
Callable | compound |
Iterable | compound |
Resource | special |
Null | special |
Mixed | pseudo |
Void | pseudo |
Number | pseudo |
String | pseudo |
NumberString | scalar |
UnicodeString | scalar |
Uuid | complex |
Datetime | complex |
Closure | complex |
While releases have been made (even marked as production worthy) this project is still experimental.