o
Consistent object representation of basic data types.
Inheritance friendly implementation.
Provides Arr (array), Obj (object), Str (string), Number (float), Integer (int) and Boolean (bool) classes.
Installation
Install with Composer;
composer require phrity/o
Documentation
Classes
The package contain the following classes:
| Class | Reflects | Implements |
|---|---|---|
| Arr | array |
ArrayAccess Countable Iterator Traversable Comparable Equalable |
| Obj | object |
Comparable Equalable |
| Str | string |
Comparable Equalable |
| Integer | int |
Comparable Equalable |
| Number | float |
Comparable Equalable |
| Boolean | bool |
Comparable Equalable |
Versions
| Version | PHP | |
|---|---|---|
1.2 |
^7.1 |
Str (string), Number (float), Integer (int) and Boolean (bool) classes |
1.1 |
>=5.6 |
Comparison support |
1.0 |
>=5.6 |
Arr (array) and Obj (object) classes |