codeliner/array-reader
Read values from multidimensional PHP arrays using dot-paths with escaping for dotted keys. Typed getters like stringValue() accept defaults when paths are missing, and pathExists() lets you distinguish null values from non-existent paths.
config('app.settings.feature.enabled')).request->arrayReader->stringValue('user.address.city')).stringValue(), intValue()) with fallback defaults.$array['key']['subkey']).Arr::get() or data_get() suffice for your use case (though this package offers stricter typing).For Executives:
"This package lets our PHP/Laravel team safely and cleanly extract values from complex nested arrays—like reading a config file or API response—with minimal code. It reduces bugs from manual traversal (e.g., array['key']['missing']) and adds type safety. For example, instead of writing 5 lines of error-prone array access, we’d use arrayReader->stringValue('path.to.value', 'default'). It’s a tiny, low-risk dependency that saves dev time on boilerplate, especially for config or form data. Given its permissive license and Laravel-friendly design, it’s a no-brainer for teams already using Composer."
For Engineers:
*"ArrayReader solves a common pain point: safely drilling into nested arrays with dot notation (e.g., hash.with.nested) and fallback defaults. Key benefits:
intValue() or stringValue() enforce return types.pathExists() avoids NULL vs. undefined ambiguity.hash.with\.dot\.key).How can I help you explore Laravel packages today?