1. Go to this page and download the library: Download grizz-it/json-schema library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
grizz-it / json-schema example snippets
use GrizzIt\JsonSchema\Factory\SchemaValidatorFactory;
$factory = new SchemaValidatorFactory();
use GrizzIt\Validator\Common\ValidatorInterface;
/** @var ValidatorInterface $validator */
$validator($myData); // returns true or false.