https://github.com/ajthinking/data-query
Access properties and methods in uncertain PHP data structures
https://github.com/ajthinking/data-query
laravel php
Last synced: 3 months ago
JSON representation
Access properties and methods in uncertain PHP data structures
- Host: GitHub
- URL: https://github.com/ajthinking/data-query
- Owner: ajthinking
- License: mit
- Created: 2022-04-18T09:50:58.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-11T12:07:54.000Z (almost 2 years ago)
- Last Synced: 2025-02-11T10:47:29.307Z (5 months ago)
- Topics: laravel, php
- Language: PHP
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Query spaghetti data structures :spaghetti:
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
```bash
composer require ajthinking/data-query
```
## Usage```php
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](LICENSE.md) for more information.
[
](https://supportukrainenow.org)