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('database.connections.mysql.host') instead of $config['database']['connections']['mysql']['host']), saving engineering time.get($response, 'data.user.profile.name')).spatie/data-transfer-object).For Executives:
"This package lets our dev team access nested data in PHP with a single line of code—like get($data, 'user.profile.email')—instead of writing 5+ lines of array traversal. It’s a no-brainer for projects where data complexity is growing (e.g., [Product X]’s config system or [Feature Y]’s reporting). MIT-licensed, zero dependencies, and used by [462+ teams]. It’ll cut dev time by ~20% on data-heavy tasks while keeping the codebase clean. Let’s pilot it in [Module Z] to prove the ROI."
For Engineering:
*"This is a drop-in solution for dot notation in PHP, inspired by Laravel’s config() helper but framework-agnostic. Key benefits:
$array['a']['b']['c'] with get($array, 'a.b.c').__get), or even custom data structures.get($data, 'path', default: 'fallback')).ArrayHelper class."*How can I help you explore Laravel packages today?