Various PHP utilities for general use.
-
Arrays: Utility functions for arrays; also proxies many built-in php array functions, and removes the by-reference behavior found on the
*sort()
functions and some others. -
Json: Encoding and decoding with sensible defaults and exception-based error handling.
-
Value: General variable handling utilties, debugging, and type/pseudotype checking.
Requires:
- php 7.1 or later
- Exceptable 1.1 or later (
composer require php-enspired/exceptable
)
Recommended installation method is via Composer: simply composer require php-enspired/util
.
Wiki pages are forthcoming; code is well-docblocked.
Run tests with composer test:unit
.
I'm on Freenode at #php-enspired
, or open an issue on github. Feedback is welcomed as well.