PHPackages                             mlambley/json-reference - 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. mlambley/json-reference

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

mlambley/json-reference
=======================

A library for working with JSON References

1.1.0(8y ago)058.8k↓51.1%MITPHPPHP &gt;=5.6.0

Since Apr 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mlambley/json-reference)[ Packagist](https://packagist.org/packages/mlambley/json-reference)[ RSS](/packages/mlambley-json-reference/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (11)Versions (5)Used By (0)

JSON Reference
==============

[](#json-reference)

Maintained Once Again!
======================

[](#maintained-once-again)

This project was originally forked from thephpleague who is no longer maintaining it. However this library is the best json dereferencer I can find, so I will continue to maintain it.

Please log any issues or feature requests [here](https://github.com/mlambley/json-reference/issues)

---

Most JSON schemas use JSON references to minimize duplication. A JSON reference is an object that looks like {"$ref": "[http://some/where"}](http://some/where%22%7D) and points to a JSON object somewhere else.

JSON Reference is a library for resolving references.

- Resolves all references, replacing them with proxy objects.
- Supports references to external files, urls, or custom sources.
- Safely resolves circular references.
- Supports caching dereferenced schemas.
- Dereferenced schemas can be safely json\_encoded.
- Works with Swagger, JSON Schema, and any other spec compliant JSON documents.

Install
-------

[](#install)

### Via Composer

[](#via-composer)

```
composer require mlambley/json-reference
```

Usage
-----

[](#usage)

Complete documentation is available [here](http://json-reference.thephpleague.com/)

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information about what has changed recently.

Testing
-------

[](#testing)

```
$ composer test-server
$ composer test
```

Benchmarks
----------

[](#benchmarks)

The benchmarks require a local redis server to be running on localhost at the default port.

```
$ composer bench
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- \[Matt Allan\]\[link-author\]
- \[All Contributors\]\[link-contributors\]

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

34

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~167 days

Total

3

Last Release

3067d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17264636?v=4)[Mark Lambley](/maintainers/mlambley)[@mlambley](https://github.com/mlambley)

---

Top Contributors

[![peterpostmann](https://avatars.githubusercontent.com/u/9541377?v=4)](https://github.com/peterpostmann "peterpostmann (3 commits)")[![mark-lambley-simpro](https://avatars.githubusercontent.com/u/24515999?v=4)](https://github.com/mark-lambley-simpro "mark-lambley-simpro (2 commits)")[![natebrunette](https://avatars.githubusercontent.com/u/1831497?v=4)](https://github.com/natebrunette "natebrunette (1 commits)")

---

Tags

jsonReferencejson-reference

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.9k556.2M21.5k](/packages/laravel-framework)[illuminate/contracts

The Illuminate Contracts package.

707133.3M15.2k](/packages/illuminate-contracts)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69735.8M179](/packages/algolia-algoliasearch-client-php)[moonshine/moonshine

Laravel administration panel

1.3k268.2k89](/packages/moonshine-moonshine)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

86337.5k](/packages/flow-php-flow)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k53](/packages/civicrm-civicrm-core)

PHPackages © 2026

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