How To Install php-container-interop on CentOS 7
Introduction
In this tutorial we learn how to install php-container-interop
on CentOS 7.
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 CentOS 7. 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 CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install php-container-interop
using yum
by running the following command:
Install php-container-interop on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install php-container-interop
using dnf
by running the following command:
How To Uninstall php-container-interop on CentOS 7
To uninstall only the php-container-interop
package we can use the following command:
References
Summary
In this tutorial we learn how to install php-container-interop
on CentOS 7 using yum
and dnf
.