Download the PHP package ropi/json-schema-evaluator without Composer

On this page you can find all versions of the php package ropi/json-schema-evaluator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package json-schema-evaluator

A modern JSON Schema evaluator for PHP

This library is a PHP based implementation for evaluating and validating JSON Schemas. The library can be easily extended with your own keywords and drafts.

Requirements

Table of contents

Installation

The library can be installed from a command line interface by using composer.

Supported drafts

Draft 2020-12 (Core and Validation)

Passes all tests of official JSON schema test suite except the following optional tests:

Basic examples

Basic usage

Read individual error results

Output of above example:

Formatting results

In the following example, the results are formatted as Basic Output Structure. In addition, only the Flag Output Structure is also currently supported.

Output of above example:

Mutations

Default values

If a default value is defined with the default keyword, it can be automatically applied during evaluation.

Content decoding

If encoded content is defined with the contentEncoding keyword, it can be automatically decoded during evaluation.

Advanced examples

Assert content media type

If content media type is defined with the contentMediaType keyword, it can be respected during evaluation.

Assert format

If format is defined with the format keyword, it can be respected during evaluation.

Short-circuiting

By default, all keywords are evaluated, even if the first keyword validation fails. If short circuiting is activated, the evaluation stops at the first negative validation result.

Big numbers (interpret numeric strings as numbers)

Custom keywords

It is possible to add custom keywords to a draft.\ The following example shows how to implement a keyword where the instance must match a specific md5 hash.


All versions of json-schema-evaluator with dependencies

PHP Build Version
Package Version
Requires ext-bcmath Version *
ext-mbstring Version *
ext-fileinfo Version *
php Version >=8.1.0
guzzlehttp/psr7 Version ^2.0
symfony/polyfill-intl-idn Version ^1.23
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ropi/json-schema-evaluator contains the following files

Loading the files please wait ....