How to pear install HTTP2 and HTTP_Request2

Whilst working on a project recently I’ve found the need to install the HTTP2 package from the pear repository. I couldn’t find any useful notes on how to install HTTP2 via pear so here’s my notes on how to pear install HTTP2.

Firstly, make sure Pear is installed. On an Ubuntu system you can use apt-get to install:

Then update the channels:

Search for HTTP2:

Finally install HTTP2:

Additionally, I needed to install HTTP_Request2: