How To Install php-container-interop on Fedora 36

In this tutorial we learn how to install php-container-interop in Fedora 36. php-container-interop is Promoting the interoperability of container objects (DIC, SL, etc.)

Introduction

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

What is php-container-interop

container-interop tries to identify and standardize features in container objects (service locators, dependency injection containers, etc.) to achieve interopererability. Through discussions and trials, we try to create a standard, made of common interfaces but also recommendations. If PHP projects that provide container implementations begin to adopt these common standards, then PHP applications and projects that use containers can depend on the common interfaces instead of specific implementations. This facilitates a high-level of interoperability and flexibility that allows users to consume any container implementation that can be adapted to these interfaces. The work done in this project is not officially endorsed by the PHP-FIG [1], but it is being worked on by members of PHP-FIG and other good developers. We adhere to the spirit and ideals of PHP-FIG, and hope this project will pave the way for one or more future PSRs. Autoloader [1] http

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

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

sudo dnf -y install php-container-interop

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

sudo yum -y install php-container-interop

How To Uninstall php-container-interop on Fedora 36

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

sudo dnf remove php-container-interop

php-container-interop Package Contents on Fedora 36

/usr/share/doc/php-container-interop
/usr/share/doc/php-container-interop/README.md
/usr/share/doc/php-container-interop/composer.json
/usr/share/doc/php-container-interop/docs
/usr/share/doc/php-container-interop/docs/ContainerInterface-meta.md
/usr/share/doc/php-container-interop/docs/ContainerInterface.md
/usr/share/doc/php-container-interop/docs/Delegate-lookup-meta.md
/usr/share/doc/php-container-interop/docs/Delegate-lookup.md
/usr/share/doc/php-container-interop/docs/images
/usr/share/doc/php-container-interop/docs/images/interoperating_containers.png
/usr/share/doc/php-container-interop/docs/images/priority.png
/usr/share/doc/php-container-interop/docs/images/side_by_side_containers.png
/usr/share/licenses/php-container-interop
/usr/share/licenses/php-container-interop/LICENSE
/usr/share/php/Interop
/usr/share/php/Interop/Container
/usr/share/php/Interop/Container/ContainerInterface.php
/usr/share/php/Interop/Container/Exception
/usr/share/php/Interop/Container/Exception/ContainerException.php
/usr/share/php/Interop/Container/Exception/NotFoundException.php
/usr/share/php/Interop/Container/autoload.php

References

Summary

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