How To Install php-vlucas-phpdotenv on Fedora 36
Introduction
In this tutorial we learn how to install php-vlucas-phpdotenv
on Fedora 36.
What is php-vlucas-phpdotenv
Loads environment variables from .env to getenv(), $_ENV and $_SERVER automagically. This is a PHP version of the original Ruby dotenv [1]. Autoloader [1] https
We can use yum
or dnf
to install php-vlucas-phpdotenv
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-vlucas-phpdotenv.
Install php-vlucas-phpdotenv 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-vlucas-phpdotenv
using dnf
by running the following command:
sudo dnf -y install php-vlucas-phpdotenv
Install php-vlucas-phpdotenv 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-vlucas-phpdotenv
using yum
by running the following command:
sudo yum -y install php-vlucas-phpdotenv
How To Uninstall php-vlucas-phpdotenv on Fedora 36
To uninstall only the php-vlucas-phpdotenv
package we can use the following command:
sudo dnf remove php-vlucas-phpdotenv
php-vlucas-phpdotenv Package Contents on Fedora 36
/usr/share/doc/php-vlucas-phpdotenv
/usr/share/doc/php-vlucas-phpdotenv/README.md
/usr/share/doc/php-vlucas-phpdotenv/composer.json
/usr/share/licenses/php-vlucas-phpdotenv
/usr/share/licenses/php-vlucas-phpdotenv/LICENSE.txt
/usr/share/php/Dotenv
/usr/share/php/Dotenv/Dotenv.php
/usr/share/php/Dotenv/Exception
/usr/share/php/Dotenv/Exception/ExceptionInterface.php
/usr/share/php/Dotenv/Exception/InvalidCallbackException.php
/usr/share/php/Dotenv/Exception/InvalidFileException.php
/usr/share/php/Dotenv/Exception/InvalidPathException.php
/usr/share/php/Dotenv/Exception/ValidationException.php
/usr/share/php/Dotenv/Loader.php
/usr/share/php/Dotenv/Parser.php
/usr/share/php/Dotenv/Validator.php
/usr/share/php/Dotenv/autoload.php
References
Summary
In this tutorial we learn how to install php-vlucas-phpdotenv
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).