How To Install php-phpunit-phploc on Fedora 36
Introduction
In this tutorial we learn how to install php-phpunit-phploc
on Fedora 36.
What is php-phpunit-phploc
phploc is a tool for quickly measuring the size of a PHP project. The goal of phploc is not not to replace more sophisticated tools such as phpcs, pdepend, or phpmd, but rather to provide an alternative to them when you just need to get a quick understanding of a project’s size.
We can use yum
or dnf
to install php-phpunit-phploc
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-phpunit-phploc.
Install php-phpunit-phploc 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-phpunit-phploc
using dnf
by running the following command:
sudo dnf -y install php-phpunit-phploc
Install php-phpunit-phploc 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-phpunit-phploc
using yum
by running the following command:
sudo yum -y install php-phpunit-phploc
How To Uninstall php-phpunit-phploc on Fedora 36
To uninstall only the php-phpunit-phploc
package we can use the following command:
sudo dnf remove php-phpunit-phploc
php-phpunit-phploc Package Contents on Fedora 36
/usr/bin/phploc
/usr/share/doc/php-phpunit-phploc
/usr/share/doc/php-phpunit-phploc/README.md
/usr/share/doc/php-phpunit-phploc/composer.json
/usr/share/licenses/php-phpunit-phploc
/usr/share/licenses/php-phpunit-phploc/LICENSE
/usr/share/php/SebastianBergmann/PHPLOC
/usr/share/php/SebastianBergmann/PHPLOC/Analyser.php
/usr/share/php/SebastianBergmann/PHPLOC/CLI
/usr/share/php/SebastianBergmann/PHPLOC/CLI/Application.php
/usr/share/php/SebastianBergmann/PHPLOC/CLI/Arguments.php
/usr/share/php/SebastianBergmann/PHPLOC/CLI/ArgumentsBuilder.php
/usr/share/php/SebastianBergmann/PHPLOC/Collector.php
/usr/share/php/SebastianBergmann/PHPLOC/Exception
/usr/share/php/SebastianBergmann/PHPLOC/Exception/ArgumentsBuilderException.php
/usr/share/php/SebastianBergmann/PHPLOC/Exception/Exception.php
/usr/share/php/SebastianBergmann/PHPLOC/Exception/RuntimeException.php
/usr/share/php/SebastianBergmann/PHPLOC/Log
/usr/share/php/SebastianBergmann/PHPLOC/Log/Csv.php
/usr/share/php/SebastianBergmann/PHPLOC/Log/Json.php
/usr/share/php/SebastianBergmann/PHPLOC/Log/Text.php
/usr/share/php/SebastianBergmann/PHPLOC/Log/Xml.php
/usr/share/php/SebastianBergmann/PHPLOC/Publisher.php
/usr/share/php/SebastianBergmann/PHPLOC/autoload.php
References
Summary
In this tutorial we learn how to install php-phpunit-phploc
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).