How To Install php-psr-http-server-middleware on Fedora 36

In this tutorial we learn how to install php-psr-http-server-middleware in Fedora 36. php-psr-http-server-middleware is Common interface for HTTP server-side middleware

Introduction

In this tutorial we learn how to install php-psr-http-server-middleware on Fedora 36.

What is php-psr-http-server-middleware

This repository holds the MiddlewareInterface related to PSR-15 (HTTP Server Request Handlers). Note that this is not a Middleware implementation of its own. It is merely the interface that describe a Middleware. Please refer to the specification for a description https Autoloader

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

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

sudo dnf -y install php-psr-http-server-middleware

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

sudo yum -y install php-psr-http-server-middleware

How To Uninstall php-psr-http-server-middleware on Fedora 36

To uninstall only the php-psr-http-server-middleware package we can use the following command:

sudo dnf remove php-psr-http-server-middleware

php-psr-http-server-middleware Package Contents on Fedora 36

/usr/share/doc/php-psr-http-server-middleware
/usr/share/doc/php-psr-http-server-middleware/README.md
/usr/share/doc/php-psr-http-server-middleware/composer.json
/usr/share/licenses/php-psr-http-server-middleware
/usr/share/licenses/php-psr-http-server-middleware/LICENSE
/usr/share/php/Psr/Http/Server/MiddlewareInterface.php
/usr/share/php/Psr/Http/Server/middleware-autoload.php

References

Summary

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