fighttheice/datatypes

Creating a standard for PHP datatypes

v2.0.0 2020-12-01 15:54 UTC

This package is auto-updated.

Last update: 2024-03-29 04:45:35 UTC


README

Creating confusion since 2020. Lets make PHP a bit more "typed" (ROFL)....

License

The code is currently released under the MIT license.

Installation

You can install the package via composer:

$ composer install fighttheice/datatypes

Tests

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

Releases

While releases have been made (even marked as production worthy) this project is still experimental.