ajthinking/data-query
This is my package data-query
Maintainers
dev-master
2023-07-10 12:47 UTC
Requires
- php: ^8.1
- illuminate/contracts: ^9.0
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- nunomaduro/collision: ^6.0
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpunit/phpunit: ^9.5
- spatie/laravel-ray: ^1.26
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 6c525f0843aac966366262c0c0cfe2663562bca7
- Anders Jurisoo <jurisoo.woop@hotmail.com>
This package is auto-updated.
Last update: 2026-06-11 18:44:58 UTC
README
Access properties and methods in uncertain PHP data structures. Supports object and array access and can forward method calls. It automatically interprets the underlying data structure (JSON, array or object) and simply gives you the (nested) result.
Installation
composer require ajthinking/data-query
Usage
use Ajthinking\DataQuery\DataQuery; DataQuery::in($spaghetti) ->prop ->method('some arg') ->nestedProp ['deep nested prop with spaces'] ->get(); // result or null
License
The MIT License (MIT). Please see License File for more information.
