heterogeny / heterogeny-php
Installs: 3 771
Dependents: 1
Suggesters: 0
Security: 0
Stars: 6
Watchers: 1
Forks: 2
Open Issues: 0
pkg:composer/heterogeny/heterogeny-php
Requires (Dev)
- phpunit/phpunit: ^7.0
- symfony/var-dumper: ^4.0
This package is auto-updated.
Last update: 2025-10-28 15:25:09 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.