How To Install php-symfony3-dotenv on Fedora 36

In this tutorial we learn how to install php-symfony3-dotenv in Fedora 36. php-symfony3-dotenv is Registers environment variables from a .env file (version 3)

Introduction

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

What is php-symfony3-dotenv

The Dotenv Component parses .env files to make environment variables stored in them accessible via getenv(), $_ENV or $_SERVER. Autoloader

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

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

sudo dnf -y install php-symfony3-dotenv

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

sudo yum -y install php-symfony3-dotenv

How To Uninstall php-symfony3-dotenv on Fedora 36

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

sudo dnf remove php-symfony3-dotenv

php-symfony3-dotenv Package Contents on Fedora 36

/usr/share/doc/php-symfony3-dotenv
/usr/share/doc/php-symfony3-dotenv/CHANGELOG.md
/usr/share/doc/php-symfony3-dotenv/README.md
/usr/share/doc/php-symfony3-dotenv/composer.json
/usr/share/licenses/php-symfony3-dotenv
/usr/share/licenses/php-symfony3-dotenv/LICENSE
/usr/share/php/Symfony3/Component/Dotenv
/usr/share/php/Symfony3/Component/Dotenv/Dotenv.php
/usr/share/php/Symfony3/Component/Dotenv/Exception
/usr/share/php/Symfony3/Component/Dotenv/Exception/ExceptionInterface.php
/usr/share/php/Symfony3/Component/Dotenv/Exception/FormatException.php
/usr/share/php/Symfony3/Component/Dotenv/Exception/FormatExceptionContext.php
/usr/share/php/Symfony3/Component/Dotenv/Exception/PathException.php
/usr/share/php/Symfony3/Component/Dotenv/autoload.php

References

Summary

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