How To Install php-laminas-router on Fedora 36

In this tutorial we learn how to install php-laminas-router in Fedora 36. php-laminas-router is Laminas Framework Router component

Introduction

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

What is php-laminas-router

laminas-router provides flexible HTTP routing. Routing currently works against the laminas-http request and responses, and provides capabilities around * Literal path matches * Path segment matches (at path boundaries, and optionally validated using regex) * Regular expression path matches * HTTP request scheme * HTTP request method * Hostname Additionally, it supports combinations of different route types in tree structures, allowing for fast, b-tree lookups. Documentation

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

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

sudo dnf -y install php-laminas-router

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

sudo yum -y install php-laminas-router

How To Uninstall php-laminas-router on Fedora 36

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

sudo dnf remove php-laminas-router

php-laminas-router Package Contents on Fedora 36

/usr/share/doc/php-laminas-router
/usr/share/doc/php-laminas-router/COPYRIGHT.md
/usr/share/doc/php-laminas-router/README.md
/usr/share/doc/php-laminas-router/composer.json
/usr/share/licenses/php-laminas-router
/usr/share/licenses/php-laminas-router/LICENSE
/usr/share/php/Laminas/Router
/usr/share/php/Laminas/Router/ConfigProvider.php
/usr/share/php/Laminas/Router/Exception
/usr/share/php/Laminas/Router/Exception/ExceptionInterface.php
/usr/share/php/Laminas/Router/Exception/InvalidArgumentException.php
/usr/share/php/Laminas/Router/Exception/RuntimeException.php
/usr/share/php/Laminas/Router/Http
/usr/share/php/Laminas/Router/Http/Chain.php
/usr/share/php/Laminas/Router/Http/Hostname.php
/usr/share/php/Laminas/Router/Http/HttpRouterFactory.php
/usr/share/php/Laminas/Router/Http/Literal.php
/usr/share/php/Laminas/Router/Http/Method.php
/usr/share/php/Laminas/Router/Http/Part.php
/usr/share/php/Laminas/Router/Http/Placeholder.php
/usr/share/php/Laminas/Router/Http/Regex.php
/usr/share/php/Laminas/Router/Http/RouteInterface.php
/usr/share/php/Laminas/Router/Http/RouteMatch.php
/usr/share/php/Laminas/Router/Http/Scheme.php
/usr/share/php/Laminas/Router/Http/Segment.php
/usr/share/php/Laminas/Router/Http/TranslatorAwareTreeRouteStack.php
/usr/share/php/Laminas/Router/Http/TreeRouteStack.php
/usr/share/php/Laminas/Router/Http/Wildcard.php
/usr/share/php/Laminas/Router/Module.php
/usr/share/php/Laminas/Router/PriorityList.php
/usr/share/php/Laminas/Router/RouteInterface.php
/usr/share/php/Laminas/Router/RouteInvokableFactory.php
/usr/share/php/Laminas/Router/RouteMatch.php
/usr/share/php/Laminas/Router/RoutePluginManager.php
/usr/share/php/Laminas/Router/RoutePluginManagerFactory.php
/usr/share/php/Laminas/Router/RouteStackInterface.php
/usr/share/php/Laminas/Router/RouterConfigTrait.php
/usr/share/php/Laminas/Router/RouterFactory.php
/usr/share/php/Laminas/Router/SimpleRouteStack.php
/usr/share/php/Laminas/Router/autoload.php
/usr/share/php/Zend/Router
/usr/share/php/Zend/Router/autoload.php

References

Summary

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