How To Install php-phpunit-php-timer2 on Fedora 36

In this tutorial we learn how to install php-phpunit-php-timer2 in Fedora 36. php-phpunit-php-timer2 is PHP Utility class for timing

Introduction

In this tutorial we learn how to install php-phpunit-php-timer2 on Fedora 36.

What is php-phpunit-php-timer2

Utility class for timing things, factored out of PHPUnit into a stand-alone component.

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

Install php-phpunit-php-timer2 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-php-timer2 using dnf by running the following command:

sudo dnf -y install php-phpunit-php-timer2

Install php-phpunit-php-timer2 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-php-timer2 using yum by running the following command:

sudo yum -y install php-phpunit-php-timer2

How To Uninstall php-phpunit-php-timer2 on Fedora 36

To uninstall only the php-phpunit-php-timer2 package we can use the following command:

sudo dnf remove php-phpunit-php-timer2

php-phpunit-php-timer2 Package Contents on Fedora 36

/usr/share/doc/php-phpunit-php-timer2
/usr/share/doc/php-phpunit-php-timer2/README.md
/usr/share/doc/php-phpunit-php-timer2/composer.json
/usr/share/licenses/php-phpunit-php-timer2
/usr/share/licenses/php-phpunit-php-timer2/LICENSE
/usr/share/php/SebastianBergmann
/usr/share/php/SebastianBergmann/Timer
/usr/share/php/SebastianBergmann/Timer/Exception.php
/usr/share/php/SebastianBergmann/Timer/RuntimeException.php
/usr/share/php/SebastianBergmann/Timer/Timer.php
/usr/share/php/SebastianBergmann/Timer/autoload.php

References

Summary

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