How To Install php-psr-container on Fedora 36

In this tutorial we learn how to install php-psr-container in Fedora 36. php-psr-container is Common Container Interface

Introduction

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

What is php-psr-container

This package holds all interfaces/classes/traits related to PSR-11. Note that this is not a container implementation of its own. Autoloader

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

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

sudo dnf -y install php-psr-container

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

sudo yum -y install php-psr-container

How To Uninstall php-psr-container on Fedora 36

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

sudo dnf remove php-psr-container

php-psr-container Package Contents on Fedora 36

/usr/share/doc/php-psr-container
/usr/share/doc/php-psr-container/README.md
/usr/share/doc/php-psr-container/composer.json
/usr/share/licenses/php-psr-container
/usr/share/licenses/php-psr-container/LICENSE
/usr/share/php/Psr
/usr/share/php/Psr/Container
/usr/share/php/Psr/Container/ContainerExceptionInterface.php
/usr/share/php/Psr/Container/ContainerInterface.php
/usr/share/php/Psr/Container/NotFoundExceptionInterface.php
/usr/share/php/Psr/Container/autoload.php

References

Summary

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