How To Install php-sabre-uri2 on Fedora 36
Introduction
In this tutorial we learn how to install php-sabre-uri2
on Fedora 36.
What is php-sabre-uri2
sabre/uri is a lightweight library that provides several functions for working with URIs, staying true to the rules of RFC3986. Partially inspired by Node.js URL library, and created to solve real problems in PHP applications. 100% unitested and many tests are based on examples from RFC3986. The library provides the following functions * resolve to resolve relative urls. * normalize to aid in comparing urls. * parse, which works like PHP’s parse_url. * build to do the exact opposite of parse. * split to easily get the ‘dirname’ and ‘basename’ of a URL without all the problems those two functions have. Autoloader
We can use yum
or dnf
to install php-sabre-uri2
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-sabre-uri2.
Install php-sabre-uri2 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-uri2
using dnf
by running the following command:
sudo dnf -y install php-sabre-uri2
Install php-sabre-uri2 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-uri2
using yum
by running the following command:
sudo yum -y install php-sabre-uri2
How To Uninstall php-sabre-uri2 on Fedora 36
To uninstall only the php-sabre-uri2
package we can use the following command:
sudo dnf remove php-sabre-uri2
php-sabre-uri2 Package Contents on Fedora 36
/usr/share/doc/php-sabre-uri2
/usr/share/doc/php-sabre-uri2/CHANGELOG.md
/usr/share/doc/php-sabre-uri2/README.md
/usr/share/doc/php-sabre-uri2/composer.json
/usr/share/licenses/php-sabre-uri2
/usr/share/licenses/php-sabre-uri2/LICENSE
/usr/share/php/Sabre
/usr/share/php/Sabre/Uri2
/usr/share/php/Sabre/Uri2/InvalidUriException.php
/usr/share/php/Sabre/Uri2/Version.php
/usr/share/php/Sabre/Uri2/autoload.php
/usr/share/php/Sabre/Uri2/functions.php
References
Summary
In this tutorial we learn how to install php-sabre-uri2
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).