How To Install php-httpful on Kali Linux

In this tutorial we learn how to install php-httpful on Kali Linux. php-httpful is A Readable, Chainable, REST friendly, PHP HTTP Client

Introduction

In this tutorial we learn how to install php-httpful on Kali Linux.

What is php-httpful

php-httpful is:

Httpful is a simple HTTP Client library. It contains the following features.

  • Readable HTTP Method Support (GET, PUT, POST, DELETE, HEAD, PATCH and OPTIONS)
  • Custom Headers
  • Automatic “Smart” Parsing
  • Automatic Payload Serialization
  • Basic Auth
  • Client Side Certificate Auth
  • Request “Templates”

There are three methods to install php-httpful on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install php-httpful Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install php-httpful using apt-get by running the following command:

sudo apt-get -y install php-httpful

Install php-httpful Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install php-httpful using apt by running the following command:

sudo apt -y install php-httpful

Install php-httpful Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install php-httpful using aptitude by running the following command:

sudo aptitude -y install php-httpful

How To Uninstall php-httpful on Kali Linux

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

sudo apt-get remove php-httpful

Uninstall php-httpful And Its Dependencies

To uninstall php-httpful and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove php-httpful

Remove php-httpful Configurations and Data

To remove php-httpful configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge php-httpful

Remove php-httpful configuration, data, and all of its dependencies

We can use the following command to remove php-httpful configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge php-httpful

Dependencies

php-httpful have the following dependencies:

References

Summary

In this tutorial we learn how to install php-httpful package on Kali Linux using different package management tools: apt, apt-get and aptitude.