PHP Package: opis/json-schema

Opis JSON Schema is a powerful PHP library for validating JSON data against a schema definition.

Current Version: 2.5.0
Last Updated: 2025-10-08
PHP Requirement: ^7.4 || ^8.0
Dependencies:
opis/json
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Opis JSON Schema is a comprehensive PHP library designed for validating JSON data structures against a predefined schema. It provides an intuitive way to enforce data consistency and ensure compliance with specified rules. With support for complex validation scenarios and error handling, Opis JSON Schema simplifies the process of validating JSON data efficiently and effectively.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 2.5.0

Download Download v2.5.0

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/opis/json-schema/2.5.0/loader.php';
require_once 'libs/opis/json/{lib_version}/loader.php';

use Opis\JsonSchema\Validator;

$obj = new Validator();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.