How To Install php-symfony-class-loader on Fedora 36
Introduction
In this tutorial we learn how to install php-symfony-class-loader
on Fedora 36.
What is php-symfony-class-loader
The ClassLoader Component loads your project classes automatically if they follow some standard PHP conventions. Whenever you use an undefined class, PHP uses the autoloading mechanism to delegate the loading of a file defining the class. Symfony provides a “universal” autoloader, which is able to load classes from files that implement one of the following conventions * The technical interoperability standards [1] for PHP 5.3 namespaces and class names * The PEAR naming convention [2] for classes If your classes and the third-party libraries you use for your project follow these standards, the Symfony autoloader is the only autoloader you will ever need. Optional * APC (php-pecl-apcu) * XCache (php-xcache) [1] http [2] http
We can use yum
or dnf
to install php-symfony-class-loader
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-symfony-class-loader.
Install php-symfony-class-loader 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-class-loader
using dnf
by running the following command:
sudo dnf -y install php-symfony-class-loader
Install php-symfony-class-loader 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-class-loader
using yum
by running the following command:
sudo yum -y install php-symfony-class-loader
How To Uninstall php-symfony-class-loader on Fedora 36
To uninstall only the php-symfony-class-loader
package we can use the following command:
sudo dnf remove php-symfony-class-loader
php-symfony-class-loader Package Contents on Fedora 36
/usr/share/doc/php-symfony-class-loader
/usr/share/doc/php-symfony-class-loader/CHANGELOG.md
/usr/share/doc/php-symfony-class-loader/README.md
/usr/share/doc/php-symfony-class-loader/composer.json
/usr/share/licenses/php-symfony-class-loader
/usr/share/licenses/php-symfony-class-loader/LICENSE
/usr/share/php/Symfony/Component/ClassLoader
/usr/share/php/Symfony/Component/ClassLoader/ApcClassLoader.php
/usr/share/php/Symfony/Component/ClassLoader/ApcUniversalClassLoader.php
/usr/share/php/Symfony/Component/ClassLoader/ClassCollectionLoader.php
/usr/share/php/Symfony/Component/ClassLoader/ClassLoader.php
/usr/share/php/Symfony/Component/ClassLoader/ClassMapGenerator.php
/usr/share/php/Symfony/Component/ClassLoader/DebugClassLoader.php
/usr/share/php/Symfony/Component/ClassLoader/DebugUniversalClassLoader.php
/usr/share/php/Symfony/Component/ClassLoader/MapClassLoader.php
/usr/share/php/Symfony/Component/ClassLoader/Psr4ClassLoader.php
/usr/share/php/Symfony/Component/ClassLoader/UniversalClassLoader.php
/usr/share/php/Symfony/Component/ClassLoader/WinCacheClassLoader.php
/usr/share/php/Symfony/Component/ClassLoader/XcacheClassLoader.php
/usr/share/php/Symfony/Component/ClassLoader/autoload.php
/usr/share/php/Symfony/Component/ClassLoader/autoloader.php
References
Summary
In this tutorial we learn how to install php-symfony-class-loader
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).