How To Install php-dasprid-enum on Fedora 36

In this tutorial we learn how to install php-dasprid-enum in Fedora 36. php-dasprid-enum is PHP enum implementation

Introduction

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

What is php-dasprid-enum

It is a well known fact that PHP is missing a basic enum type, ignoring the rather incomplete SplEnum implementation which is only available as a PECL extension. There are also quite a few other userland enum implementations around, but all of them have one or another compromise. This library tries to close that gap as far as PHP allows it to. Autoloader

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

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

sudo dnf -y install php-dasprid-enum

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

sudo yum -y install php-dasprid-enum

How To Uninstall php-dasprid-enum on Fedora 36

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

sudo dnf remove php-dasprid-enum

php-dasprid-enum Package Contents on Fedora 36

/usr/share/doc/php-dasprid-enum
/usr/share/doc/php-dasprid-enum/README.md
/usr/share/doc/php-dasprid-enum/composer.json
/usr/share/licenses/php-dasprid-enum
/usr/share/licenses/php-dasprid-enum/LICENSE
/usr/share/php/DASPRiD
/usr/share/php/DASPRiD/Enum
/usr/share/php/DASPRiD/Enum/AbstractEnum.php
/usr/share/php/DASPRiD/Enum/EnumMap.php
/usr/share/php/DASPRiD/Enum/Exception
/usr/share/php/DASPRiD/Enum/Exception/CloneNotSupportedException.php
/usr/share/php/DASPRiD/Enum/Exception/ExceptionInterface.php
/usr/share/php/DASPRiD/Enum/Exception/ExpectationException.php
/usr/share/php/DASPRiD/Enum/Exception/IllegalArgumentException.php
/usr/share/php/DASPRiD/Enum/Exception/MismatchException.php
/usr/share/php/DASPRiD/Enum/Exception/SerializeNotSupportedException.php
/usr/share/php/DASPRiD/Enum/Exception/UnserializeNotSupportedException.php
/usr/share/php/DASPRiD/Enum/NullValue.php
/usr/share/php/DASPRiD/Enum/autoload.php

References

Summary

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