peekmo/jsonpath
peekmo/jsonpath adds JSONPath querying to PHP/Laravel, letting you select, filter, and extract values from complex JSON/arrays using familiar JSONPath expressions. Useful for API responses, config inspection, and transforming nested data quickly.
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?