How To Install php-PsrLog on Fedora 36

In this tutorial we learn how to install php-PsrLog in Fedora 36. php-PsrLog is Common interface for logging libraries

Introduction

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

What is php-PsrLog

This package holds all interfaces/classes/traits related to PSR-3 [1]. Note that this is not a logger of its own. It is merely an interface that describes a logger. See the specification for more details. [1] https

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

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

sudo dnf -y install php-PsrLog

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

sudo yum -y install php-PsrLog

How To Uninstall php-PsrLog on Fedora 36

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

sudo dnf remove php-PsrLog

php-PsrLog Package Contents on Fedora 36

/usr/share/doc/php-PsrLog
/usr/share/doc/php-PsrLog/README.md
/usr/share/doc/php-PsrLog/composer.json
/usr/share/licenses/php-PsrLog
/usr/share/licenses/php-PsrLog/LICENSE
/usr/share/php/Psr
/usr/share/php/Psr/Log
/usr/share/php/Psr/Log/AbstractLogger.php
/usr/share/php/Psr/Log/InvalidArgumentException.php
/usr/share/php/Psr/Log/LogLevel.php
/usr/share/php/Psr/Log/LoggerAwareInterface.php
/usr/share/php/Psr/Log/LoggerAwareTrait.php
/usr/share/php/Psr/Log/LoggerInterface.php
/usr/share/php/Psr/Log/LoggerTrait.php
/usr/share/php/Psr/Log/NullLogger.php
/usr/share/php/Psr/Log/Test
/usr/share/php/Psr/Log/Test/DummyTest.php
/usr/share/php/Psr/Log/Test/LoggerInterfaceTest.php
/usr/share/php/Psr/Log/Test/TestLogger.php
/usr/share/php/Psr/Log/autoload.php

References

Summary

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