Near natural implementation of PHP built-in types. Inspired by Ruby.
Dice\Types (just Types hereafter) is a PHP package which attempts to make PHP native types (Strings, Arrays, Integers etc.) behave more naturally using Object Oriented approach. The inspiration for functionality is taken from that of Ruby types., (*1)
Installation is by using composer. Add the following lines in the require
section of your composer.json file, (*2)
"dice/types": "dev-master"
And then run composer install
, (*3)
NOTE: Types is still in beta. Proceed with caution, (*4)
Download the repo, run composer install
to install the dependencies and then run vendor/bin/phpunit tests
to run the tests. If something fails, please let us know., (*5)
IMPORTANT: Only the Str type tests are available., (*6)