How To Install php-laminas-json on Fedora 36

In this tutorial we learn how to install php-laminas-json in Fedora 36. php-laminas-json is Laminas Framework Json component

Introduction

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

What is php-laminas-json

laminas-json provides convenience methods for serializing native PHP to JSON and decoding JSON to native PHP. Documentation

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

Install php-laminas-json 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-laminas-json using dnf by running the following command:

sudo dnf -y install php-laminas-json

Install php-laminas-json 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-laminas-json using yum by running the following command:

sudo yum -y install php-laminas-json

How To Uninstall php-laminas-json on Fedora 36

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

sudo dnf remove php-laminas-json

php-laminas-json Package Contents on Fedora 36

/usr/share/doc/php-laminas-json
/usr/share/doc/php-laminas-json/COPYRIGHT.md
/usr/share/doc/php-laminas-json/README.md
/usr/share/doc/php-laminas-json/composer.json
/usr/share/licenses/php-laminas-json
/usr/share/licenses/php-laminas-json/LICENSE
/usr/share/php/Laminas/Json
/usr/share/php/Laminas/Json/Decoder.php
/usr/share/php/Laminas/Json/Encoder.php
/usr/share/php/Laminas/Json/Exception
/usr/share/php/Laminas/Json/Exception/BadMethodCallException.php
/usr/share/php/Laminas/Json/Exception/ExceptionInterface.php
/usr/share/php/Laminas/Json/Exception/InvalidArgumentException.php
/usr/share/php/Laminas/Json/Exception/RecursionException.php
/usr/share/php/Laminas/Json/Exception/RuntimeException.php
/usr/share/php/Laminas/Json/Expr.php
/usr/share/php/Laminas/Json/Json.php
/usr/share/php/Laminas/Json/autoload.php
/usr/share/php/Zend/Json
/usr/share/php/Zend/Json/autoload.php

References

Summary

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