How To Install php-phplang-scope-exit on Fedora 36
Introduction
In this tutorial we learn how to install php-phplang-scope-exit on Fedora 36.
What is php-phplang-scope-exit
This simple class provides an implementation of C++’s SCOPE_EXIT, or GoLang’s defer. To use, assign an instance of this object to a local variable. When that variable falls out of scope (or is explicitly unset), the callback passed to the constructor will be invoked. This is useful, for example, to aid cleanup at the end of a function. Autoloader
We can use yum or dnf to install php-phplang-scope-exit on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-phplang-scope-exit.
Install php-phplang-scope-exit 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-phplang-scope-exit using dnf by running the following command:
sudo dnf -y install php-phplang-scope-exit
Install php-phplang-scope-exit 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-phplang-scope-exit using yum by running the following command:
sudo yum -y install php-phplang-scope-exit
How To Uninstall php-phplang-scope-exit on Fedora 36
To uninstall only the php-phplang-scope-exit package we can use the following command:
sudo dnf remove php-phplang-scope-exit
php-phplang-scope-exit Package Contents on Fedora 36
/usr/share/doc/php-phplang-scope-exit
/usr/share/doc/php-phplang-scope-exit/README.md
/usr/share/doc/php-phplang-scope-exit/composer.json
/usr/share/licenses/php-phplang-scope-exit
/usr/share/licenses/php-phplang-scope-exit/LICENSE
/usr/share/php/PhpLang
/usr/share/php/PhpLang/ScopeExit.php
/usr/share/php/PhpLang/scope-exit-autoload.php
References
Summary
In this tutorial we learn how to install php-phplang-scope-exit on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).