dflydev/dot-access-data
Access and modify nested PHP arrays/objects using dot notation. Set, get, check, and append values with simple paths like a.b.c. Supports defaults and throws exceptions for missing paths—handy for configs and deep data structures.
The package provides dot notation access for nested data structures, but Laravel already includes equivalent functionality via Illuminate\Support\Arr (e.g., Arr::get(), Arr::set(), Arr::has(), Arr::add()). This creates significant redundancy. While the package offers ArrayAccess implementation and explicit exception handling (e.g., MissingPathException), Laravel’s Arr class is tightly integrated with the framework, supports all common use cases, and avoids dependency bloat. Technical risk is high due to unnecessary duplication—introducing this package would confuse developers about which tool to use and add maintenance overhead for features already covered by core Laravel. Key questions: Why use this over Laravel’s built-in Arr? Are there specific edge cases (e.g., / delimiter support) where Laravel’s helpers fall short? (They don’t—Laravel’s Arr already supports dot notation natively and handles / via string manipulation if needed.)
No meaningful integration is recommended. Laravel’s Arr class is part of the framework’s core utilities,
How can I help you explore Laravel packages today?