PHPackages                             b-hayes/json - 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. [CLI &amp; Console](/categories/cli)
4. /
5. b-hayes/json

ActiveLibrary[CLI &amp; Console](/categories/cli)

b-hayes/json
============

Runs any PHP Class as a command line application

v0.1.1(3y ago)039MITPHPPHP &gt;=7.4.3

Since Nov 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/b-hayes/json)[ Packagist](https://packagist.org/packages/b-hayes/json)[ RSS](/packages/b-hayes-json/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

json
====

[](#json)

A very basic JSON class for common tasks. Basically a wrapper for php's standard encoding/decoding but using the JSON\_THROW\_EXCEPTION option so that invalid json always throws an exception. Comes with some other things like applying the contents of JSON string to an object as properties so you can get code hints for common json responses by pseudo typ-casting them into a DTO.

Plans for improving later but jsut want this as a package to install with other projects.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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 ~73 days

Total

5

Last Release

1346d ago

PHP version history (3 changes)v0.0.0PHP ^7.4.3

v0.0.1PHP &gt;7.4.3

v0.1.0PHP &gt;=7.4.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/08b077be72247da28acf4dfadfea4bb139fa2315caa1af62a6cc0aa9aafb5375?d=identicon)[b-hayes](/maintainers/b-hayes)

---

Top Contributors

[![b-hayes](https://avatars.githubusercontent.com/u/30540495?v=4)](https://github.com/b-hayes "b-hayes (14 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/b-hayes-json/health.svg)

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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