peekmo/jsonpath
Laravel-friendly JSONPath implementation for querying and extracting data from JSON and PHP arrays. Supports common JSONPath syntax to filter, traverse, and select values, making it easy to work with complex API responses and nested documents.
Adopt if:
jsonpath-php with active maintenance).Look elsewhere if:
go-jsonpath or jsonpath-js).For Executives: "This package lets us add JSON query capabilities to our [product] with minimal engineering lift. For example, we could enable users to filter API responses dynamically or validate complex configs—features that competitors might require custom development for. Since it’s based on a widely adopted standard (JSONPath), it integrates seamlessly with tools our team already uses. The trade-off is that it’s not actively maintained, but given its simplicity and our PHP stack, the risk is low for our near-term needs."
For Engineering: *"Peekmo’s JSONPath implementation is a drop-in solution for parsing nested JSON in PHP. It’s lightweight (~70 stars, MIT licensed) and aligns with the Stefan Goessner spec, so we avoid reinventing the wheel. Key limitations: no modern JSONPath+ features or streaming, but it’s sufficient for:
$.store.book[?(@.price < 10)]).JsonPath::search($data, '$.user.settings')).How can I help you explore Laravel packages today?