How To Install php-pimple on Fedora 36

In this tutorial we learn how to install php-pimple in Fedora 36. php-pimple is A simple dependency injection container for PHP

Introduction

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

What is php-pimple

A simple dependency injection container for PHP. Autoloader

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

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

sudo dnf -y install php-pimple

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

sudo yum -y install php-pimple

How To Uninstall php-pimple on Fedora 36

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

sudo dnf remove php-pimple

php-pimple Package Contents on Fedora 36

/usr/share/doc/php-pimple
/usr/share/doc/php-pimple/CHANGELOG
/usr/share/doc/php-pimple/README.rst
/usr/share/doc/php-pimple/composer.json
/usr/share/licenses/php-pimple
/usr/share/licenses/php-pimple/LICENSE
/usr/share/php/Pimple
/usr/share/php/Pimple/Container.php
/usr/share/php/Pimple/Exception
/usr/share/php/Pimple/Exception/ExpectedInvokableException.php
/usr/share/php/Pimple/Exception/FrozenServiceException.php
/usr/share/php/Pimple/Exception/InvalidServiceIdentifierException.php
/usr/share/php/Pimple/Exception/UnknownIdentifierException.php
/usr/share/php/Pimple/Psr11
/usr/share/php/Pimple/Psr11/Container.php
/usr/share/php/Pimple/Psr11/ServiceLocator.php
/usr/share/php/Pimple/ServiceIterator.php
/usr/share/php/Pimple/ServiceProviderInterface.php
/usr/share/php/Pimple/autoload.php

References

Summary

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