Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 days 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 (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-11T12:07:54.000Z (over 1 year ago)
- Last Synced: 2024-05-01T14:54:23.705Z (10 months ago)
- Topics: laravel, php
- Language: PHP
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- 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)