PHPackages                             sburba/strict-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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. sburba/strict-json

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

sburba/strict-json
==================

A strict and basic json parser

3.2.4(6y ago)010.9k↓50%2[1 PRs](https://github.com/sburba/strict-json/pulls)MITPHPCI failing

Since Apr 9Pushed 5y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (8)Versions (18)Used By (0)

StrictJson
==========

[](#strictjson)

[![Coverage](https://camo.githubusercontent.com/dca7b9ca8615bf5fcb5cd1451fdf8a103f1bba2d24a50ae8da2cd3326ed2cd44/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f7362757262612f7374726963742d6a736f6e2e737667)](https://codecov.io/gh/sburba/strict-json)

StrictJson converts JSON into your plain old PHP classes

**View the user documentation at **

Development
===========

[](#development)

Working locally requires Docker or PHP 7.2 to be installed. The rest of these steps will assume you're using docker. If you're not using docker, just run the commands without the `scripts/run_in_docker.sh` prefix (And skip building the image, obviously).

Build
-----

[](#build)

Run `scripts/build_docker.sh` to build the docker image

Install dependencies
--------------------

[](#install-dependencies)

Run `scripts/run_in_docker.sh composer install` to install all the required dependencies

Validate Code
-------------

[](#validate-code)

Run `scripts/run_in_docker.sh scripts/check_all.sh` to check code style and run unit and mutation tests

Automatically fix code style
----------------------------

[](#automatically-fix-code-style)

Run `scripts/run_in_docker.sh vendor/bin/php-cs-fixer fix .`

Preview docs
------------

[](#preview-docs)

Run `scripts/run_in_docker.sh vendor/bin/couscous preview 0.0.0.0:8000`Go to localhost:8000 to preview your documentation changes

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 64.2% 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 ~12 days

Total

16

Last Release

2397d ago

Major Versions

1.1.0 → 2.0.02019-04-17

2.0.1 → 3.0.02019-04-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/1d12247b7ceb09441a42aec9070006b254441d7727c498d80bf123dcd4cd0066?d=identicon)[Sam Burba](/maintainers/Sam%20Burba)

---

Top Contributors

[![sburba](https://avatars.githubusercontent.com/u/1319492?v=4)](https://github.com/sburba "sburba (34 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (10 commits)")[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (9 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M282](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M226](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M63](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M343](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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