How To Install php-firebase-php-jwt on Fedora 36

In this tutorial we learn how to install php-firebase-php-jwt in Fedora 36. php-firebase-php-jwt is A simple library to encode and decode JSON Web Tokens (JWT)

Introduction

In this tutorial we learn how to install php-firebase-php-jwt on Fedora 36.

What is php-firebase-php-jwt

A simple library to encode and decode JSON Web Tokens (JWT) in PHP, conforming to RFC 7519 [1]. Autoloader [1] https

We can use yum or dnf to install php-firebase-php-jwt on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-firebase-php-jwt.

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

sudo dnf -y install php-firebase-php-jwt

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

sudo yum -y install php-firebase-php-jwt

How To Uninstall php-firebase-php-jwt on Fedora 36

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

sudo dnf remove php-firebase-php-jwt

php-firebase-php-jwt Package Contents on Fedora 36

/usr/share/doc/php-firebase-php-jwt
/usr/share/doc/php-firebase-php-jwt/README.md
/usr/share/doc/php-firebase-php-jwt/composer.json
/usr/share/licenses/php-firebase-php-jwt
/usr/share/licenses/php-firebase-php-jwt/LICENSE
/usr/share/php/Firebase
/usr/share/php/Firebase/JWT
/usr/share/php/Firebase/JWT/BeforeValidException.php
/usr/share/php/Firebase/JWT/ExpiredException.php
/usr/share/php/Firebase/JWT/JWT.php
/usr/share/php/Firebase/JWT/SignatureInvalidException.php
/usr/share/php/Firebase/JWT/autoload.php

References

Summary

In this tutorial we learn how to install php-firebase-php-jwt on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).