Skip to content

php-get-typed-value

Get typed (strict mode) values from an Array / XML with basic validation.

Safe dot notation

Retrieve values from Array (JSON) / XML with correct return type with safe dot notation support.

Type strict

Makes PHPStan / IDE happy due the type strict return types.

Validation

Ensures that desired value is in correct type (without additional loop validation).

Transformers

Ensures that values are in expected type. Converts empty string values to null (can be disabled, see transformers).