How To Install php-laminas-escaper on Fedora 36
Introduction
In this tutorial we learn how to install php-laminas-escaper
on Fedora 36.
What is php-laminas-escaper
The OWASP Top 10 web security risks study lists Cross-Site Scripting (XSS) in second place. PHP’s sole functionality against XSS is limited to two functions of which one is commonly misapplied. Thus, the laminas-escaper component was written. It offers developers a way to escape output and defend from XSS and related vulnerabilities by introducing contextual escaping based on peer-reviewed rules. Documentation
We can use yum
or dnf
to install php-laminas-escaper
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-laminas-escaper.
Install php-laminas-escaper 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-laminas-escaper
using dnf
by running the following command:
sudo dnf -y install php-laminas-escaper
Install php-laminas-escaper 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-laminas-escaper
using yum
by running the following command:
sudo yum -y install php-laminas-escaper
How To Uninstall php-laminas-escaper on Fedora 36
To uninstall only the php-laminas-escaper
package we can use the following command:
sudo dnf remove php-laminas-escaper
php-laminas-escaper Package Contents on Fedora 36
/usr/share/doc/php-laminas-escaper
/usr/share/doc/php-laminas-escaper/COPYRIGHT.md
/usr/share/doc/php-laminas-escaper/README.md
/usr/share/doc/php-laminas-escaper/composer.json
/usr/share/licenses/php-laminas-escaper
/usr/share/licenses/php-laminas-escaper/LICENSE
/usr/share/php/Laminas/Escaper
/usr/share/php/Laminas/Escaper/Escaper.php
/usr/share/php/Laminas/Escaper/Exception
/usr/share/php/Laminas/Escaper/Exception/ExceptionInterface.php
/usr/share/php/Laminas/Escaper/Exception/InvalidArgumentException.php
/usr/share/php/Laminas/Escaper/Exception/RuntimeException.php
/usr/share/php/Laminas/Escaper/autoload.php
/usr/share/php/Zend/Escaper
/usr/share/php/Zend/Escaper/autoload.php
References
Summary
In this tutorial we learn how to install php-laminas-escaper
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).