How To Install php-sabre-http5 on Fedora 36
Introduction
In this tutorial we learn how to install php-sabre-http5
on Fedora 36.
What is php-sabre-http5
This library provides a toolkit to make working with the HTTP protocol easier. Most PHP scripts run within a HTTP request but accessing information about the HTTP request is cumbersome at least, mainly do to superglobals and the CGI standard. There’s bad practices, inconsistencies and confusion. This library is effectively a wrapper around the following PHP constructs For Input $_GET $_POST $_SERVER php For output php header() What this library provides, is a Request object, and a Response object. The objects are extendable and easily mockable. Autoloader
We can use yum
or dnf
to install php-sabre-http5
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-sabre-http5.
Install php-sabre-http5 on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install php-sabre-http5
using dnf
by running the following command:
sudo dnf -y install php-sabre-http5
Install php-sabre-http5 on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install php-sabre-http5
using yum
by running the following command:
sudo yum -y install php-sabre-http5
How To Uninstall php-sabre-http5 on Fedora 36
To uninstall only the php-sabre-http5
package we can use the following command:
sudo dnf remove php-sabre-http5
php-sabre-http5 Package Contents on Fedora 36
/usr/share/doc/php-sabre-http5
/usr/share/doc/php-sabre-http5/CHANGELOG.md
/usr/share/doc/php-sabre-http5/README.md
/usr/share/doc/php-sabre-http5/composer.json
/usr/share/licenses/php-sabre-http5
/usr/share/licenses/php-sabre-http5/LICENSE
/usr/share/php/Sabre/HTTP5
/usr/share/php/Sabre/HTTP5/Auth
/usr/share/php/Sabre/HTTP5/Auth/AWS.php
/usr/share/php/Sabre/HTTP5/Auth/AbstractAuth.php
/usr/share/php/Sabre/HTTP5/Auth/Basic.php
/usr/share/php/Sabre/HTTP5/Auth/Bearer.php
/usr/share/php/Sabre/HTTP5/Auth/Digest.php
/usr/share/php/Sabre/HTTP5/Client.php
/usr/share/php/Sabre/HTTP5/ClientException.php
/usr/share/php/Sabre/HTTP5/ClientHttpException.php
/usr/share/php/Sabre/HTTP5/HttpException.php
/usr/share/php/Sabre/HTTP5/Message.php
/usr/share/php/Sabre/HTTP5/MessageDecoratorTrait.php
/usr/share/php/Sabre/HTTP5/MessageInterface.php
/usr/share/php/Sabre/HTTP5/Request.php
/usr/share/php/Sabre/HTTP5/RequestDecorator.php
/usr/share/php/Sabre/HTTP5/RequestInterface.php
/usr/share/php/Sabre/HTTP5/Response.php
/usr/share/php/Sabre/HTTP5/ResponseDecorator.php
/usr/share/php/Sabre/HTTP5/ResponseInterface.php
/usr/share/php/Sabre/HTTP5/Sapi.php
/usr/share/php/Sabre/HTTP5/Version.php
/usr/share/php/Sabre/HTTP5/autoload.php
/usr/share/php/Sabre/HTTP5/functions.php
References
Summary
In this tutorial we learn how to install php-sabre-http5
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).