dice/types

Near natural implementation of PHP built-in types

dev-master 2018-09-11 10:49 UTC

This package is not auto-updated.

Last update: 2024-04-24 12:39:35 UTC


README

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.

Installation

Installation is by using composer. Add the following lines in the require section of your composer.json file

"dice/types": "dev-master"

And then run composer install

NOTE: Types is still in beta. Proceed with caution

Testing

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.

IMPORTANT: Only the Str type tests are available.

Available Types

  1. String