How To Install php-phpdocumentor-type-resolver on Fedora 36
Introduction
In this tutorial we learn how to install php-phpdocumentor-type-resolver
on Fedora 36.
What is php-phpdocumentor-type-resolver
The specification on types in DocBlocks (PSR-5) describes various keywords and special constructs but also how to statically resolve the partial name of a Class into a Fully Qualified Class Name (FQCN). PSR-5 also introduces an additional way to describe deeper elements than Classes, Interfaces and Traits called the Fully Qualified Structural Element Name (FQSEN). Using this it is possible to refer to methods, properties and class constants but also functions and global constants. This package provides two Resolvers that are capable of 1. Returning a series of Value Object for given expression while resolving any partial class names, and 2. Returning an FQSEN object after resolving any partial Structural Element Names into Fully Qualified Structural Element names. Autoloader
We can use yum
or dnf
to install php-phpdocumentor-type-resolver
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-phpdocumentor-type-resolver.
Install php-phpdocumentor-type-resolver 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-phpdocumentor-type-resolver
using dnf
by running the following command:
sudo dnf -y install php-phpdocumentor-type-resolver
Install php-phpdocumentor-type-resolver 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-phpdocumentor-type-resolver
using yum
by running the following command:
sudo yum -y install php-phpdocumentor-type-resolver
How To Uninstall php-phpdocumentor-type-resolver on Fedora 36
To uninstall only the php-phpdocumentor-type-resolver
package we can use the following command:
sudo dnf remove php-phpdocumentor-type-resolver
php-phpdocumentor-type-resolver Package Contents on Fedora 36
/usr/share/doc/php-phpdocumentor-type-resolver
/usr/share/doc/php-phpdocumentor-type-resolver/README.md
/usr/share/doc/php-phpdocumentor-type-resolver/composer.json
/usr/share/doc/php-phpdocumentor-type-resolver/examples
/usr/share/doc/php-phpdocumentor-type-resolver/examples/01-resolving-simple-types.php
/usr/share/doc/php-phpdocumentor-type-resolver/examples/02-resolving-classes.php
/usr/share/doc/php-phpdocumentor-type-resolver/examples/03-resolving-all-elements.php
/usr/share/doc/php-phpdocumentor-type-resolver/examples/04-discovering-the-context-using-class-reflection.php
/usr/share/doc/php-phpdocumentor-type-resolver/examples/05-discovering-the-context-using-method-reflection.php
/usr/share/doc/php-phpdocumentor-type-resolver/examples/06-discovering-the-context-using-file-contents.php
/usr/share/doc/php-phpdocumentor-type-resolver/examples/Classy.php
/usr/share/licenses/php-phpdocumentor-type-resolver
/usr/share/licenses/php-phpdocumentor-type-resolver/LICENSE
/usr/share/php/phpDocumentor/Reflection/FqsenResolver.php
/usr/share/php/phpDocumentor/Reflection/Type.php
/usr/share/php/phpDocumentor/Reflection/TypeResolver.php
/usr/share/php/phpDocumentor/Reflection/Types
/usr/share/php/phpDocumentor/Reflection/Types/Array_.php
/usr/share/php/phpDocumentor/Reflection/Types/Boolean.php
/usr/share/php/phpDocumentor/Reflection/Types/Callable_.php
/usr/share/php/phpDocumentor/Reflection/Types/Compound.php
/usr/share/php/phpDocumentor/Reflection/Types/Context.php
/usr/share/php/phpDocumentor/Reflection/Types/ContextFactory.php
/usr/share/php/phpDocumentor/Reflection/Types/Float_.php
/usr/share/php/phpDocumentor/Reflection/Types/Integer.php
/usr/share/php/phpDocumentor/Reflection/Types/Iterable_.php
/usr/share/php/phpDocumentor/Reflection/Types/Mixed_.php
/usr/share/php/phpDocumentor/Reflection/Types/Null_.php
/usr/share/php/phpDocumentor/Reflection/Types/Nullable.php
/usr/share/php/phpDocumentor/Reflection/Types/Object_.php
/usr/share/php/phpDocumentor/Reflection/Types/Parent_.php
/usr/share/php/phpDocumentor/Reflection/Types/Resource_.php
/usr/share/php/phpDocumentor/Reflection/Types/Scalar.php
/usr/share/php/phpDocumentor/Reflection/Types/Self_.php
/usr/share/php/phpDocumentor/Reflection/Types/Static_.php
/usr/share/php/phpDocumentor/Reflection/Types/String_.php
/usr/share/php/phpDocumentor/Reflection/Types/This.php
/usr/share/php/phpDocumentor/Reflection/Types/Void_.php
/usr/share/php/phpDocumentor/Reflection/autoload-type-resolver.php
References
Summary
In this tutorial we learn how to install php-phpdocumentor-type-resolver
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).