nahid/jsonq
JsonQ is a PHP library for querying JSON data with a fluent, jq-like API. Traverse nested objects and arrays, filter with where, sort, select, and extract values without manual array handling. Ideal for APIs, config files, and dynamic JSON.
Consider it when:
whereJsonContains, database JSON path queries, Illuminate\Support\Arr, or a small custom query layer—would take materially longer or be less expressive.Look elsewhere when:
For executives: This is a small, permissively licensed utility that can accelerate features requiring JSON filtering and querying—especially internal dashboards and data-exploration tools—without a schema migration or custom parser. The main risk is that it has not been released since 2021, so I recommend a time-boxed pilot in a non-critical workflow, isolated behind an internal adapter, before any broader commitment.
For engineering: It provides a query-builder-style API over nested JSON and can save time versus writing a custom filter/sort/select layer. However, treat it as unmaintained: verify PHP/Laravel compatibility, add tests, pin the version or fork, and avoid exposing raw query input without validation. Use it for read-only, bounded datasets—not core application data or high-volume paths. If native Laravel JSON queries or database JSON functions are sufficient, prefer those.
How can I help you explore Laravel packages today?