How To Install php-ocramius-instantiator on Fedora 36

In this tutorial we learn how to install php-ocramius-instantiator in Fedora 36. php-ocramius-instantiator is Instantiate objects in PHP without invoking their constructors

Introduction

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

What is php-ocramius-instantiator

This library provides a way of avoiding usage of constructors when instantiating PHP classes.

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

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

sudo dnf -y install php-ocramius-instantiator

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

sudo yum -y install php-ocramius-instantiator

How To Uninstall php-ocramius-instantiator on Fedora 36

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

sudo dnf remove php-ocramius-instantiator

php-ocramius-instantiator Package Contents on Fedora 36

/usr/share/doc/php-ocramius-instantiator
/usr/share/doc/php-ocramius-instantiator/CONTRIBUTING.md
/usr/share/doc/php-ocramius-instantiator/README.md
/usr/share/licenses/php-ocramius-instantiator
/usr/share/licenses/php-ocramius-instantiator/LICENSE
/usr/share/php/Instantiator
/usr/share/php/Instantiator/Exception
/usr/share/php/Instantiator/Exception/ExceptionInterface.php
/usr/share/php/Instantiator/Exception/InvalidArgumentException.php
/usr/share/php/Instantiator/Exception/UnexpectedValueException.php
/usr/share/php/Instantiator/Instantiator.php
/usr/share/php/Instantiator/InstantiatorInterface.php

References

Summary

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