Skip to content

Json ​

php
final class Zairakai\LaravelDevTools\Update\Json

Typed reading of decoded JSON (composer.json, configuration, GitLab API): a value of another type becomes an empty one.

Source: src/Update/Json.php

Methods ​

int() ​

php
public static function int(array $row, string $key): int

map() ​

php
public static function map(mixed $value): array

Returns array<string, mixed>

requirements() ​

php
public static function requirements(mixed $value): array

Returns array<string, string>

rows() ​

php
public static function rows(mixed $value): array

Returns list<array<string, mixed>>

strings() ​

php
public static function strings(mixed $value): array

Returns list<string>

text() ​

php
public static function text(array $row, string $key): string

textOr() ​

php
public static function textOr(array $row, string $key, string $default): string

The text of a key, or the default one when the key is missing or empty.

Documentation of 5.5.0 , built from 92a7387 on 5.5.0 by pipeline #3086393151 on 2026-11-18.