PHPackages                             nuxed/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nuxed/json

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

nuxed/json
==========

Nuxed Json

v2.0.1(5y ago)16653MITHack

Since Oct 26Pushed 5y ago2 watchersCompare

[ Source](https://github.com/nuxed/json)[ Packagist](https://packagist.org/packages/nuxed/json)[ RSS](/packages/nuxed-json/feed)WikiDiscussions develop Synced 3d ago

READMEChangelog (6)Dependencies (10)Versions (9)Used By (3)

[![](https://avatars3.githubusercontent.com/u/45311177?s=200&v=4)](https://avatars3.githubusercontent.com/u/45311177?s=200&v=4)

[![Coding standards status](https://github.com/nuxed/json/workflows/coding%20standards/badge.svg?branch=develop)](https://github.com/nuxed/json/workflows/coding%20standards/badge.svg?branch=develop)[![Static analysis status](https://github.com/nuxed/json/workflows/static%20analysis/badge.svg?branch=develop)](https://github.com/nuxed/json/workflows/static%20analysis/badge.svg?branch=develop)[![Unit tests status](https://github.com/nuxed/json/workflows/unit%20tests/badge.svg?branch=develop)](https://github.com/nuxed/json/workflows/unit%20tests/badge.svg?branch=develop)[![Total Downloads](https://camo.githubusercontent.com/e2ea3584d2da32687acb6b80373c20ad0830edc8e1a8360fbb9c585ab5624fab/68747470733a2f2f706f7365722e707567782e6f72672f6e757865642f6a736f6e2f642f746f74616c2e737667)](https://packagist.org/packages/nuxed/json)[![Latest Stable Version](https://camo.githubusercontent.com/48beeba246ea495e5647d4bb84008c10d6f69fb4abed526fb870dfef9342982e/68747470733a2f2f706f7365722e707567782e6f72672f6e757865642f6a736f6e2f762f737461626c652e737667)](https://packagist.org/packages/nuxed/json)[![License](https://camo.githubusercontent.com/67fb8b3e9de3b8f293f1dc01652794fe1da605397a2f957fba01fb7c2d8fd1cc/68747470733a2f2f706f7365722e707567782e6f72672f6e757865642f6a736f6e2f6c6963656e73652e737667)](https://packagist.org/packages/nuxed/json)

Nuxed Json
==========

[](#nuxed-json)

The Nuxed Json component provides functions that help you encode, and decode json structures safely.

### Installation

[](#installation)

This package can be installed with [Composer](https://getcomposer.org).

```
$ composer require nuxed/json
```

### Example

[](#example)

```
use namespace Nuxed\Json;
use namespace Facebook\TypeSpec;

async function main(): Awaitable {
  $data = Json\encode(dict[
    'foo' => 5,
    'bar' => 6
  ]);

  // using reified generics.
  $decoded = Json\typed($data);

  // using type spec.
  $decoded = Json\spec($data, TypeSpec\dict(
    TypeSpec\string(), TypeSpec\int();
  ));
}
```

---

### Security

[](#security)

For information on reporting security vulnerabilities in Nuxed, see [SECURITY.md](SECURITY.md).

---

### License

[](#license)

Nuxed is open-sourced software licensed under the MIT-licensed.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 92.9% 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 ~78 days

Recently: every ~98 days

Total

6

Last Release

2000d ago

Major Versions

v1.1.0 → v2.0.02020-11-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/8489d7c85bfa7c637b8e13484f3f659652aea0568b6e7f9e66edeb0649b5a2f1?d=identicon)[azjezz](/maintainers/azjezz)

---

Top Contributors

[![azjezz](https://avatars.githubusercontent.com/u/29315886?v=4)](https://github.com/azjezz "azjezz (13 commits)")[![lexidor](https://avatars.githubusercontent.com/u/31805625?v=4)](https://github.com/lexidor "lexidor (1 commits)")

---

Tags

encodinghackhhvmjsonjson-parsernuxedstrict-typetype-asserttype-safetytype-spec

### Embed Badge

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

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

###  Alternatives

[hhvm/hsl

The Hack Standard Library

1151.1M55](/packages/hhvm-hsl)[slack/hack-json-schema

Hack JSON Schema generator

302.4k](/packages/slack-hack-json-schema)

PHPackages © 2026

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