PHPackages                             m1ke/json-explore - 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. m1ke/json-explore

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

m1ke/json-explore
=================

Allows you to analyse the fields present in a data structure, aimed at APIs returning data as JSON

0.2.0(6y ago)010lgpl-3.0PHP

Since Jun 13Pushed 6y agoCompare

[ Source](https://github.com/M1ke/php-json-explore)[ Packagist](https://packagist.org/packages/m1ke/json-explore)[ RSS](/packages/m1ke-json-explore/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (4)Used By (0)

Data structure explorer
=======================

[](#data-structure-explorer)

For JSON or other APIs
----------------------

[](#for-json-or-other-apis)

Sometimes you get a response from an API or other data source which is structured data but the structure may not be obvious, e.g. 10 objects and their data differs slightly. Documentation may help but often can be incomplete or not even present.

This library is a utility to take a block of data that can translate into a PHP associative array and give you a breakdown of the possible keys that exist and base types that their values can take.

### Install it

[](#install-it)

```
composer require m1ke/json-explore

```

### See an example of it working

[](#see-an-example-of-it-working)

Run `php example/example.php`

### Use it

[](#use-it)

Three ways to create the object:

```
JsonExplore::fromJson($json);
JsonExplore::fromArray($arr);
JsonExplore::fromObj($basic_object); // casts to array, pretty basic

```

Do the fun bit:

```
$json_explore->analyse();

```

Output some data:

```
$json_explore->dump(); // var_dumps the analysis
echo $json_explore->asJson(); // pretty printed JSON object of the analysis
echo $json_explore->asPathString(); // list of keys split with dot notation

```

### Potential improvements

[](#potential-improvements)

- Unit tests (basically the example but as a PhpUnit test)
- Output JMESPATH or other targetting syntax for specific keys
- Other data inference, e.g. email, phone number, url

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~13 days

Total

3

Last Release

2501d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e13cb42c1a004c15c986cc3ac59424757dd04b25ed4068146e41812f0410338?d=identicon)[m1ke](/maintainers/m1ke)

---

Top Contributors

[![M1ke](https://avatars.githubusercontent.com/u/1226123?v=4)](https://github.com/M1ke "M1ke (6 commits)")

### Embed Badge

![Health badge](/badges/m1ke-json-explore/health.svg)

```
[![Health](https://phpackages.com/badges/m1ke-json-explore/health.svg)](https://phpackages.com/packages/m1ke-json-explore)
```

###  Alternatives

[adigital/help-links

Define useful links to be added to the dashboard for clients.

102.0k](/packages/adigital-help-links)[burnbright/silverstripe-bootstrap

Boilerplate theme, using bootstrap

101.0k](/packages/burnbright-silverstripe-bootstrap)

PHPackages © 2026

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