PHPackages                             ajthinking/data-query - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ajthinking/data-query

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ajthinking/data-query
=====================

This is my package data-query

101[1 PRs](https://github.com/ajthinking/data-query/pulls)PHP

Since Jul 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ajthinking/data-query)[ Packagist](https://packagist.org/packages/ajthinking/data-query)[ RSS](/packages/ajthinking-data-query/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Query spaghetti data structures 🍝
=================================

[](#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
------------

[](#installation)

```
composer require ajthinking/data-query
```

Usage
-----

[](#usage)

```
use Ajthinking\DataQuery\DataQuery;

DataQuery::in($spaghetti)
	->prop
	->method('some arg')
	->nestedProp
	['deep nested prop with spaces']
	->get(); // result or null
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

[![](https://camo.githubusercontent.com/2bedf63f24cda7efab02da955dc11fb7ef8a060e2f26b73c33a7aac84529b8a3/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f737570706f72742d756b7261696e652e7376673f743d31)](https://supportukrainenow.org)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/cc2d6bf00e3a29857b1e2a96b9e7e4339fdb7c336676c4a48ba9a80fc6dec833?d=identicon)[ajthinking](/maintainers/ajthinking)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (8 commits)")[![ajthinking](https://avatars.githubusercontent.com/u/3457668?v=4)](https://github.com/ajthinking "ajthinking (3 commits)")

---

Tags

laravelphp

### Embed Badge

![Health badge](/badges/ajthinking-data-query/health.svg)

```
[![Health](https://phpackages.com/badges/ajthinking-data-query/health.svg)](https://phpackages.com/packages/ajthinking-data-query)
```

###  Alternatives

[wpify/custom-fields

WPify Custom Fields

1325.8k2](/packages/wpify-custom-fields)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
