heterogeny / heterogeny-php
v0.0.12
2019-08-28 01:45 UTC
Requires (Dev)
- phpunit/phpunit: ^7.0
- symfony/var-dumper: ^4.0
This package is auto-updated.
Last update: 2026-03-28 16:35:33 UTC
README
Experimental
Heterogenize PHP's data structures, like array that is split into Seq, Dict and Tuple.
-
Seqis a no-keyarray, setting keys that is not an integer will result in anException, everySeqwill be JSON encoded as[]; -
Dictis a keyedarray, whether key is string or not, everyDictwill be JSON encoded as{}; -
Tupleis just like aSeq, maybe in the future helpers will be added toTuple.
Also supplying some helpers for JSON encoding/decoding without headaches on checking whether
something is array or array with keys.
Performance is not guaranteed at this point.