adbario/php-dot-notation
Lightweight, fast dot-notation access for PHP arrays. Get, set, and manipulate nested data using keys like info.home.address, with optional auto-parsing of dot keys, custom delimiters, and ArrayAccess support so Dot objects behave like arrays.
config(), request()->input()) persists as a key advantage.get()) remains a consideration for performance-critical paths, but this is release-agnostic.Arrayable/Collection support) remains viable but unrelated to this release.null for missing keys) remains consistent.array_unpack changes), it could introduce subtle bugs in older environments. Verify backward compatibility with PHP 8.0+ in CI/CD.array_unpack)?Arr::dot()/Arr::get(), but this package’s OOP approach remains more fluent.get()/set() methods for better IDE support.array_unpack or other features if beneficial (e.g., for nested array merging).null values or deeply nested arrays with PHP 8.5’s stricter type checking.Arrayable or Collection, use PHP 8.5’s enums or attributes for type safety (e.g., @method static self get(string $key)).composer.json to require PHP 8.5 if adopting it project-wide.
"require": {
"php": "^8.5",
"adbario/php-dot-notation": "^3.5"
}
array_unpack).try-catch blocks).array_key_first() returning null).strict_types=1 in the package to enforce type safety.int where a string is expected). Mitigate with:
get()/set() methods.@param string $key annotations.array_key_exists() or match expressions for safer checks.array_unpack changes), ensure backward compatibility layers exist for older PHP versions.array_is_list(), str_contains()).How can I help you explore Laravel packages today?