How To Install php-symfony-http-foundation on Fedora 36

In this tutorial we learn how to install php-symfony-http-foundation in Fedora 36. php-symfony-http-foundation is Symfony HttpFoundation Component

Introduction

In this tutorial we learn how to install php-symfony-http-foundation on Fedora 36.

What is php-symfony-http-foundation

The HttpFoundation Component defines an object-oriented layer for the HTTP specification. In PHP, the request is represented by some global variables ($_GET, $_POST, $_FILES, $_COOKIE, $_SESSION, …) and the response is generated by some functions (echo, header, setcookie, …). The Symfony HttpFoundation component replaces these default PHP global variables and functions by an Object-Oriented layer. Optional * Memcache (php-pecl-memcache) * Memcached (php-pecl-memcached) * Mongo (php-pecl-mongo)

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

Install php-symfony-http-foundation 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-symfony-http-foundation using dnf by running the following command:

sudo dnf -y install php-symfony-http-foundation

Install php-symfony-http-foundation 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-symfony-http-foundation using yum by running the following command:

sudo yum -y install php-symfony-http-foundation

How To Uninstall php-symfony-http-foundation on Fedora 36

To uninstall only the php-symfony-http-foundation package we can use the following command:

sudo dnf remove php-symfony-http-foundation

php-symfony-http-foundation Package Contents on Fedora 36

/usr/share/doc/php-symfony-http-foundation
/usr/share/doc/php-symfony-http-foundation/CHANGELOG.md
/usr/share/doc/php-symfony-http-foundation/README.md
/usr/share/doc/php-symfony-http-foundation/composer.json
/usr/share/licenses/php-symfony-http-foundation
/usr/share/licenses/php-symfony-http-foundation/LICENSE
/usr/share/php/Symfony/Component/HttpFoundation
/usr/share/php/Symfony/Component/HttpFoundation/AcceptHeader.php
/usr/share/php/Symfony/Component/HttpFoundation/AcceptHeaderItem.php
/usr/share/php/Symfony/Component/HttpFoundation/ApacheRequest.php
/usr/share/php/Symfony/Component/HttpFoundation/BinaryFileResponse.php
/usr/share/php/Symfony/Component/HttpFoundation/Cookie.php
/usr/share/php/Symfony/Component/HttpFoundation/Exception
/usr/share/php/Symfony/Component/HttpFoundation/Exception/ConflictingHeadersException.php
/usr/share/php/Symfony/Component/HttpFoundation/ExpressionRequestMatcher.php
/usr/share/php/Symfony/Component/HttpFoundation/File
/usr/share/php/Symfony/Component/HttpFoundation/File/Exception
/usr/share/php/Symfony/Component/HttpFoundation/File/Exception/AccessDeniedException.php
/usr/share/php/Symfony/Component/HttpFoundation/File/Exception/FileException.php
/usr/share/php/Symfony/Component/HttpFoundation/File/Exception/FileNotFoundException.php
/usr/share/php/Symfony/Component/HttpFoundation/File/Exception/UnexpectedTypeException.php
/usr/share/php/Symfony/Component/HttpFoundation/File/Exception/UploadException.php
/usr/share/php/Symfony/Component/HttpFoundation/File/File.php
/usr/share/php/Symfony/Component/HttpFoundation/File/MimeType
/usr/share/php/Symfony/Component/HttpFoundation/File/MimeType/ExtensionGuesser.php
/usr/share/php/Symfony/Component/HttpFoundation/File/MimeType/ExtensionGuesserInterface.php
/usr/share/php/Symfony/Component/HttpFoundation/File/MimeType/FileBinaryMimeTypeGuesser.php
/usr/share/php/Symfony/Component/HttpFoundation/File/MimeType/FileinfoMimeTypeGuesser.php
/usr/share/php/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeExtensionGuesser.php
/usr/share/php/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeGuesser.php
/usr/share/php/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeGuesserInterface.php
/usr/share/php/Symfony/Component/HttpFoundation/File/UploadedFile.php
/usr/share/php/Symfony/Component/HttpFoundation/FileBag.php
/usr/share/php/Symfony/Component/HttpFoundation/HeaderBag.php
/usr/share/php/Symfony/Component/HttpFoundation/IpUtils.php
/usr/share/php/Symfony/Component/HttpFoundation/JsonResponse.php
/usr/share/php/Symfony/Component/HttpFoundation/ParameterBag.php
/usr/share/php/Symfony/Component/HttpFoundation/RedirectResponse.php
/usr/share/php/Symfony/Component/HttpFoundation/Request.php
/usr/share/php/Symfony/Component/HttpFoundation/RequestMatcher.php
/usr/share/php/Symfony/Component/HttpFoundation/RequestMatcherInterface.php
/usr/share/php/Symfony/Component/HttpFoundation/RequestStack.php
/usr/share/php/Symfony/Component/HttpFoundation/Response.php
/usr/share/php/Symfony/Component/HttpFoundation/ResponseHeaderBag.php
/usr/share/php/Symfony/Component/HttpFoundation/ServerBag.php
/usr/share/php/Symfony/Component/HttpFoundation/Session
/usr/share/php/Symfony/Component/HttpFoundation/Session/Attribute
/usr/share/php/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBag.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBagInterface.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Attribute/NamespacedAttributeBag.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Flash
/usr/share/php/Symfony/Component/HttpFoundation/Session/Flash/AutoExpireFlashBag.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Flash/FlashBag.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Flash/FlashBagInterface.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Session.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/SessionBagInterface.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/SessionInterface.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Storage
/usr/share/php/Symfony/Component/HttpFoundation/Session/Storage/Handler
/usr/share/php/Symfony/Component/HttpFoundation/Session/Storage/Handler/LegacyPdoSessionHandler.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcacheSessionHandler.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcachedSessionHandler.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Storage/Handler/MongoDbSessionHandler.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Storage/Handler/NativeFileSessionHandler.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Storage/Handler/NativeSessionHandler.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Storage/Handler/NullSessionHandler.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Storage/Handler/WriteCheckSessionHandler.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Storage/MetadataBag.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Storage/MockArraySessionStorage.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Storage/MockFileSessionStorage.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Storage/PhpBridgeSessionStorage.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Storage/Proxy
/usr/share/php/Symfony/Component/HttpFoundation/Session/Storage/Proxy/AbstractProxy.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Storage/Proxy/NativeProxy.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Storage/Proxy/SessionHandlerProxy.php
/usr/share/php/Symfony/Component/HttpFoundation/Session/Storage/SessionStorageInterface.php
/usr/share/php/Symfony/Component/HttpFoundation/StreamedResponse.php
/usr/share/php/Symfony/Component/HttpFoundation/autoload.php
/usr/share/php/Symfony/Component/HttpFoundation/autoloader.php

References

Summary

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