How To Install php-composer-installers on CentOS 7

In this tutorial we learn how to install php-composer-installers on CentOS 7. php-composer-installers is A multi-framework Composer library installer

Introduction

In this tutorial we learn how to install php-composer-installers on CentOS 7.

What is php-composer-installers

This is for PHP package authors to require in their composer.json. It will install their package to the correct location based on the specified package type. The goal of installers is to be a simple package type to install path map. Users can also customize the install path per package and package authors can modify the package name upon installing. installers isn’t intended on replacing all custom installers. If your package requires special installation handling then by all means, create a custom installer to handle it. Autoloader

We can use yum or dnf to install php-composer-installers on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install php-composer-installers.

Install php-composer-installers on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install php-composer-installers using yum by running the following command:

sudo yum -y install php-composer-installers

Install php-composer-installers 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.

sudo dnf makecache

After updating yum database, We can install php-composer-installers using dnf by running the following command:

sudo dnf -y install php-composer-installers

How To Uninstall php-composer-installers on CentOS 7

To uninstall only the php-composer-installers package we can use the following command:

sudo dnf remove php-composer-installers

References

Summary

In this tutorial we learn how to install php-composer-installers on CentOS 7 using yum and dnf.