2017 © Pedro Peláez
 

library json-reference

A library for working with JSON References

image

league/json-reference

A library for working with JSON References

  • Saturday, May 12, 2018
  • by yuloh
  • Repository
  • 2 Watchers
  • 32 Stars
  • 143,692 Installations
  • PHP
  • 18 Dependents
  • 1 Suggesters
  • 8 Forks
  • 5 Open issues
  • 4 Versions
  • 21 % Grown

The README.md

JSON Reference

![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Documentation][ico-docs], (*1)

Unmaintained!

This project is no longer maintained. Recommended alternatives:, (*2)


Most JSON schemas use JSON references to minimize duplication. A JSON reference is an object that looks like {"$ref": "http://some/where"} and points to a JSON object somewhere else., (*3)

JSON Reference is a library for resolving references., (*4)

  • 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

Via Composer

composer require league/json-reference

Usage

Complete documentation is available here., (*5)

Change log

Please see CHANGELOG for more information about what has changed recently., (*6)

Testing

``` bash $ composer test-server $ composer test, (*7)


## Benchmarks The benchmarks require a local redis server to be running on localhost at the default port. ```bash $ composer bench

Contributing

Please see CONTRIBUTING for details., (*8)

Security

If you discover any security related issues, please email matthew.james.allan@gmail.com instead of using the issue tracker., (*9)

Credits

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

24/04 2017