How To Install php-doctrine-reflection on Fedora 36

In this tutorial we learn how to install php-doctrine-reflection in Fedora 36. php-doctrine-reflection is Additional reflection functionality

Introduction

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

What is php-doctrine-reflection

The Doctrine Reflection project is a simple library used by the various Doctrine projects which adds some additional functionality on top of the reflection functionality that comes with PHP. It allows you to get the reflection information about classes, methods and properties statically. Autoloader

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

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

sudo dnf -y install php-doctrine-reflection

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

sudo yum -y install php-doctrine-reflection

How To Uninstall php-doctrine-reflection on Fedora 36

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

sudo dnf remove php-doctrine-reflection

php-doctrine-reflection Package Contents on Fedora 36

/usr/share/doc/php-doctrine-reflection
/usr/share/doc/php-doctrine-reflection/README.md
/usr/share/doc/php-doctrine-reflection/composer.json
/usr/share/licenses/php-doctrine-reflection
/usr/share/licenses/php-doctrine-reflection/LICENSE
/usr/share/php/Doctrine/Common/Reflection
/usr/share/php/Doctrine/Common/Reflection/ClassFinderInterface.php
/usr/share/php/Doctrine/Common/Reflection/Compatibility
/usr/share/php/Doctrine/Common/Reflection/Compatibility/Php7
/usr/share/php/Doctrine/Common/Reflection/Compatibility/Php7/ReflectionClass.php
/usr/share/php/Doctrine/Common/Reflection/Compatibility/Php7/ReflectionMethod.php
/usr/share/php/Doctrine/Common/Reflection/Compatibility/Php8
/usr/share/php/Doctrine/Common/Reflection/Compatibility/Php8/ReflectionClass.php
/usr/share/php/Doctrine/Common/Reflection/Compatibility/Php8/ReflectionMethod.php
/usr/share/php/Doctrine/Common/Reflection/Compatibility/ReflectionClass.php
/usr/share/php/Doctrine/Common/Reflection/Compatibility/ReflectionMethod.php
/usr/share/php/Doctrine/Common/Reflection/Psr0FindFile.php
/usr/share/php/Doctrine/Common/Reflection/ReflectionProviderInterface.php
/usr/share/php/Doctrine/Common/Reflection/RuntimePublicReflectionProperty.php
/usr/share/php/Doctrine/Common/Reflection/StaticReflectionClass.php
/usr/share/php/Doctrine/Common/Reflection/StaticReflectionMethod.php
/usr/share/php/Doctrine/Common/Reflection/StaticReflectionParser.php
/usr/share/php/Doctrine/Common/Reflection/StaticReflectionProperty.php
/usr/share/php/Doctrine/Common/Reflection/TypedNoDefaultReflectionProperty.php
/usr/share/php/Doctrine/Common/Reflection/autoload.php

References

Summary

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