How To Install php-league-container on Fedora 36

In this tutorial we learn how to install php-league-container in Fedora 36. php-league-container is A fast and intuitive dependency injection container

Introduction

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

What is php-league-container

A small but powerful dependency injection container that allows you to decouple components in your application in order to write clean and testable code. Autoloader

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

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

sudo dnf -y install php-league-container

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

sudo yum -y install php-league-container

How To Uninstall php-league-container on Fedora 36

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

sudo dnf remove php-league-container

php-league-container Package Contents on Fedora 36

/usr/share/doc/php-league-container
/usr/share/doc/php-league-container/CHANGELOG.md
/usr/share/doc/php-league-container/CONTRIBUTING.md
/usr/share/doc/php-league-container/README.md
/usr/share/doc/php-league-container/composer.json
/usr/share/licenses/php-league-container
/usr/share/licenses/php-league-container/LICENSE.md
/usr/share/php/League
/usr/share/php/League/Container
/usr/share/php/League/Container/Argument
/usr/share/php/League/Container/Argument/ArgumentResolverInterface.php
/usr/share/php/League/Container/Argument/ArgumentResolverTrait.php
/usr/share/php/League/Container/Argument/ClassName.php
/usr/share/php/League/Container/Argument/ClassNameInterface.php
/usr/share/php/League/Container/Argument/ClassNameWithOptionalValue.php
/usr/share/php/League/Container/Argument/RawArgument.php
/usr/share/php/League/Container/Argument/RawArgumentInterface.php
/usr/share/php/League/Container/Container.php
/usr/share/php/League/Container/ContainerAwareInterface.php
/usr/share/php/League/Container/ContainerAwareTrait.php
/usr/share/php/League/Container/Definition
/usr/share/php/League/Container/Definition/Definition.php
/usr/share/php/League/Container/Definition/DefinitionAggregate.php
/usr/share/php/League/Container/Definition/DefinitionAggregateInterface.php
/usr/share/php/League/Container/Definition/DefinitionInterface.php
/usr/share/php/League/Container/Exception
/usr/share/php/League/Container/Exception/ContainerException.php
/usr/share/php/League/Container/Exception/NotFoundException.php
/usr/share/php/League/Container/Inflector
/usr/share/php/League/Container/Inflector/Inflector.php
/usr/share/php/League/Container/Inflector/InflectorAggregate.php
/usr/share/php/League/Container/Inflector/InflectorAggregateInterface.php
/usr/share/php/League/Container/Inflector/InflectorInterface.php
/usr/share/php/League/Container/ReflectionContainer.php
/usr/share/php/League/Container/ServiceProvider
/usr/share/php/League/Container/ServiceProvider/AbstractServiceProvider.php
/usr/share/php/League/Container/ServiceProvider/BootableServiceProviderInterface.php
/usr/share/php/League/Container/ServiceProvider/ServiceProviderAggregate.php
/usr/share/php/League/Container/ServiceProvider/ServiceProviderAggregateInterface.php
/usr/share/php/League/Container/ServiceProvider/ServiceProviderInterface.php
/usr/share/php/League/Container/autoload.php

References

Summary

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