How To Install php-guzzle-Guzzle on CentOS 7

In this tutorial we learn how to install php-guzzle-Guzzle on CentOS 7. php-guzzle-Guzzle is PHP HTTP client library and framework for building RESTful web

Introduction

In this tutorial we learn how to install php-guzzle-Guzzle on CentOS 7.

What is php-guzzle-Guzzle

Guzzle takes the pain out of sending HTTP requests and the redundancy out of creating web service clients. Guzzle is a framework that includes the tools needed to create a robust web service client, including defining the inputs and outputs of an API, resource iterators for traversing paginated resources, batching for sending a large number of requests as efficiently as possible. * All the power of cURL with a simple interface * Persistent connections and parallel requests * Streams request and response bodies * Service descriptions for quickly building clients * Powered by the Symfony2 EventDispatcher * Use all of the code or only specific components * Plugins for caching, logging, OAuth, mocks, and more Optional dependencies * Doctrine Cache (1.4.3 <= php-doctrine-cache < 2.0) * Monolog (1.15.0 <= php-Monolog < 2.0) * Zend Framework 2 Cache (2.4.7 <= php-ZendFramework2-Cache < 3) * Zend Framework 2 Log (2.4.7 <= php-ZendFramework2-Log < 3) Autoloader ***** EOL NOTICE ***** This package is for Guzzle 3.x. Guzzle 5.x+, the new versions of Guzzle, has been released and is available as the package “php-guzzlehttp-guzzle”. The documentation for Guzzle version 5+ can be found at http Guzzle 3 is only maintained for bug and security fixes. Guzzle 3 will be EOL at some point in late 2015. **********************

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

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

sudo yum -y install php-guzzle-Guzzle

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

sudo dnf -y install php-guzzle-Guzzle

How To Uninstall php-guzzle-Guzzle on CentOS 7

To uninstall only the php-guzzle-Guzzle package we can use the following command:

sudo dnf remove php-guzzle-Guzzle

References

Summary

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