Download the PHP package mszewcz/php-json-schema-validator without Composer

On this page you can find all versions of the php package mszewcz/php-json-schema-validator. 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 php-json-schema-validator

php-json-schema-validator

JSON schema validator class, which provides validation of JSON files according to draft-06 specification, published on 2017-04-15.

Build Status Codacy Badge Codacy Badge

Contents

Installation

If you use Composer to manage the dependencies simply add a dependency on to your project's composer.json file. Here is a minimal example of a composer.json:

You can also clone or download this respository.

php-json-schema-validator meets PSR-4 autoloading standards. If using the Composer please include its autoloader file:

If you cloned or downloaded this repository, you will have to code your own PSR-4 style autoloader implementation.

Usage

If you don't want to use Utils class to decode JSONs, you should do that the following way:

Supported elements

php-json-schema-validator supports validation against:

It also supports $ref element, so you can use in-json definitions and references without any problems.

Contributing

Contributions are welcome. Please send your contributions through GitHub pull requests

Pull requests for bug fixes must be based on latest stable release from the branch whereas pull requests for new features must be based on the branch.

Due to time constraints, I'm not always able to respond as quickly as I would like. If you feel you're waiting too long for merging your pull request please remind me here.

Coding standards

We follow PSR-2 coding style and PSR-4 autoloading standards. Be sure you're also following them before sending your pull request.

License

php-json-schema-validator is licensed under the MIT License - see the file for details.


All versions of php-json-schema-validator with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
mszewcz/php-json-utils Version >=1.0
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 mszewcz/php-json-schema-validator contains the following files

Loading the files please wait ....