softcreatr/jsonpath
Evaluate and query JSON with JSONPath in PHP. softcreatr/jsonpath lets you select, filter, and extract data from arrays/objects using familiar JSONPath expressions, making it easy to navigate complex nested structures for APIs, configs, and fixtures.
Architecture fit: Strong alignment with Laravel's common use cases (API responses, Eloquent JSON columns, config files). Replaces manual JSON traversal with expressive queries, reducing boilerplate code and improving readability. Fits naturally within Laravel's service container and middleware layers.
Integration feasibility: High—composer require is trivial, and the package can be used directly in controllers/services. No framework-specific hooks required, but may need lightweight wrappers for Laravel-specific patterns (e.g., dependency injection).
Technical risk: Critical license ambiguity (NOASSERTION), unverified future release date (2026-01-23), and low community adoption (164 stars). No CI/test coverage mentioned. Competing packages (e.g., json-path/json-path with 1.4k stars) are more established.
Key questions:
Stack fit: Ideal for Laravel API projects needing dynamic JSON querying (e.g., processing third-party webhooks, parsing configuration files). Complements Laravel’s built-in JSON helpers but adds richer path-based filtering.
Migration path: Incremental adoption:
json_decode + manual loops in non-critical services.JsonPathService class to encapsulate usage.composer.json in the package (missing in description). No known conflicts with Laravel’s JSON utilities.How can I help you explore Laravel packages today?