How To Install php-pecl-psr on Fedora 36

In this tutorial we learn how to install php-pecl-psr in Fedora 36. php-pecl-psr is PSR interfaces

Introduction

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

What is php-pecl-psr

This extension provides the accepted PSR interfaces, so they can be used in an extension. See http

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

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

sudo dnf -y install php-pecl-psr

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

sudo yum -y install php-pecl-psr

How To Uninstall php-pecl-psr on Fedora 36

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

sudo dnf remove php-pecl-psr

php-pecl-psr Package Contents on Fedora 36

/etc/php-zts.d/40-psr.ini
/etc/php.d/40-psr.ini
/usr/lib/.build-id
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/13bb536ec20f65ef6059a05e9ee510300cb886
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/3d7d14255060620f0edd231541fd74ee0bdbc3
/usr/lib64/php-zts/modules/psr.so
/usr/lib64/php/modules/psr.so
/usr/share/doc/pecl/psr
/usr/share/doc/pecl/psr/CHANGELOG.md
/usr/share/doc/pecl/psr/README.md
/usr/share/licenses/php-pecl-psr
/usr/share/licenses/php-pecl-psr/LICENSE.md
/var/lib/php/peclxml/php-pecl-psr.xml

References

Summary

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