How To Install php-JsonSchema on Fedora 36

In this tutorial we learn how to install php-JsonSchema in Fedora 36. php-JsonSchema is PHP implementation of JSON schema

Introduction

In this tutorial we learn how to install php-JsonSchema on Fedora 36.

What is php-JsonSchema

A PHP implementation for validating JSON structures against a given schema. This package provides the library version 1. The php-justinrainbow-json-schema package provides the library version 2 and the validate-json command. See http

We can use yum or dnf to install php-JsonSchema on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-JsonSchema.

Install php-JsonSchema on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install php-JsonSchema using dnf by running the following command:

sudo dnf -y install php-JsonSchema

Install php-JsonSchema on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install php-JsonSchema using yum by running the following command:

sudo yum -y install php-JsonSchema

How To Uninstall php-JsonSchema on Fedora 36

To uninstall only the php-JsonSchema package we can use the following command:

sudo dnf remove php-JsonSchema

php-JsonSchema Package Contents on Fedora 36

/usr/share/doc/php-JsonSchema
/usr/share/doc/php-JsonSchema/README.md
/usr/share/doc/php-JsonSchema/composer.json
/usr/share/licenses/php-JsonSchema
/usr/share/licenses/php-JsonSchema/LICENSE
/usr/share/php/JsonSchema
/usr/share/php/JsonSchema/Constraints
/usr/share/php/JsonSchema/Constraints/CollectionConstraint.php
/usr/share/php/JsonSchema/Constraints/Constraint.php
/usr/share/php/JsonSchema/Constraints/ConstraintInterface.php
/usr/share/php/JsonSchema/Constraints/EnumConstraint.php
/usr/share/php/JsonSchema/Constraints/Factory.php
/usr/share/php/JsonSchema/Constraints/FormatConstraint.php
/usr/share/php/JsonSchema/Constraints/NumberConstraint.php
/usr/share/php/JsonSchema/Constraints/ObjectConstraint.php
/usr/share/php/JsonSchema/Constraints/SchemaConstraint.php
/usr/share/php/JsonSchema/Constraints/StringConstraint.php
/usr/share/php/JsonSchema/Constraints/TypeConstraint.php
/usr/share/php/JsonSchema/Constraints/UndefinedConstraint.php
/usr/share/php/JsonSchema/Exception
/usr/share/php/JsonSchema/Exception/InvalidArgumentException.php
/usr/share/php/JsonSchema/Exception/InvalidSchemaMediaTypeException.php
/usr/share/php/JsonSchema/Exception/InvalidSourceUriException.php
/usr/share/php/JsonSchema/Exception/JsonDecodingException.php
/usr/share/php/JsonSchema/Exception/ResourceNotFoundException.php
/usr/share/php/JsonSchema/Exception/UriResolverException.php
/usr/share/php/JsonSchema/RefResolver.php
/usr/share/php/JsonSchema/Uri
/usr/share/php/JsonSchema/Uri/Retrievers
/usr/share/php/JsonSchema/Uri/Retrievers/AbstractRetriever.php
/usr/share/php/JsonSchema/Uri/Retrievers/Curl.php
/usr/share/php/JsonSchema/Uri/Retrievers/FileGetContents.php
/usr/share/php/JsonSchema/Uri/Retrievers/PredefinedArray.php
/usr/share/php/JsonSchema/Uri/Retrievers/UriRetrieverInterface.php
/usr/share/php/JsonSchema/Uri/UriResolver.php
/usr/share/php/JsonSchema/Uri/UriRetriever.php
/usr/share/php/JsonSchema/Validator.php
/usr/share/php/JsonSchema/autoload.php

References

Summary

In this tutorial we learn how to install php-JsonSchema on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).