How To Install php-symfony-class-loader on CentOS 7
Introduction
In this tutorial we learn how to install php-symfony-class-loader
on CentOS 7.
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 CentOS 7. 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 CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install php-symfony-class-loader
using yum
by running the following command:
Install php-symfony-class-loader on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install php-symfony-class-loader
using dnf
by running the following command:
How To Uninstall php-symfony-class-loader on CentOS 7
To uninstall only the php-symfony-class-loader
package we can use the following command:
References
Summary
In this tutorial we learn how to install php-symfony-class-loader
on CentOS 7 using yum
and dnf
.