kant1 / php-jsonschema-resolver
Simple JSON Schema parser which resolve the ref operator
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/kant1/php-jsonschema-resolver
Requires
- php: >=5.6.0
This package is not auto-updated.
Last update: 2025-09-28 01:33:30 UTC
README
This package allow you to parse a JSONSchema file and it can resolve the "$ref" operator.
<?php
require_once __DIR__.'/vendor/autoload.php';
$json = Kant1\JSONElement::fromFile(__DIR__.'/json/simple.json');
foreach($json['paths'] as $url=>$d){
print $url." : ";
foreach($d as $method=>$d){
print $method."\n";
}
}