PHPackages                             edgaras/llm-json-cleaner - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. edgaras/llm-json-cleaner

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

edgaras/llm-json-cleaner
========================

A PHP library that ensures strict JSON extraction and schema validation from LLM API responses, preventing malformed or unexpected output.

v1.1.0(1mo ago)5458↓50%MITPHP &gt;=8.3.0

Since Feb 17Compare

[ Source](https://github.com/Edgaras0x4E/LLM-JSON-Cleaner)[ Packagist](https://packagist.org/packages/edgaras/llm-json-cleaner)[ Docs](https://github.com/Edgaras0x4E/LLM-JSON-Cleaner)[ RSS](/packages/edgaras-llm-json-cleaner/feed)WikiDiscussions Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/Edgaras0x4E/LLM-JSON-Cleaner).

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance89

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

Total

2

Last Release

56d ago

### Community

Maintainers

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

---

Tags

jsonschemavalidatorvalidationcleanerllmgpt

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/edgaras-llm-json-cleaner/health.svg)

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

###  Alternatives

[opis/json-schema

Json Schema Validator for PHP

64736.9M186](/packages/opis-json-schema)[ergebnis/json-schema-validator

Provides a JSON schema validator, building on top of justinrainbow/json-schema.

3626.9M7](/packages/ergebnis-json-schema-validator)[johnstevenson/json-works

Create, edit, query and validate json

272.5M6](/packages/johnstevenson-json-works)[evaisse/php-json-schema-generator

A JSON Schema Generator.

20298.5k1](/packages/evaisse-php-json-schema-generator)[dstotijn/yii2-json-schema-validator

A Yii2 extension that provides a validator class for JSON Schema validation.

1730.7k](/packages/dstotijn-yii2-json-schema-validator)

PHPackages © 2026

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