PHP code example of aipng / json-validator
1. Go to this page and download the library: Download aipng/json-validator 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/ */
aipng / json-validator example snippets
use \AipNg\JsonValidator\JsonValidator;
$validator = new JsonValidator;
$validator->validate($jsonData, $jsonSchemaPath);
use \AipNg\JsonValidator\JsonValidator;
$validator = new JsonValidator(10, 'https://example.org/schemas/', '/<my-project-schema-path/');
$validator->validate($jsonData, $jsonSchemaPath);