How to Install and Uninstall php-codesniffer Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 21,2024

1. Install "php-codesniffer" package

This is a short guide on how to install php-codesniffer on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install php-codesniffer

2. Uninstall "php-codesniffer" package

This is a short guide on how to uninstall php-codesniffer on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove php-codesniffer $ sudo apt autoclean && sudo apt autoremove

3. Information about the php-codesniffer package on Ubuntu 21.10 (Impish Indri)

Package: php-codesniffer
Architecture: all
Version: 3.5.8-3
Priority: optional
Section: universe/web
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP PEAR Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 4174
Depends: php-cli, php-common, php-xml
Filename: pool/universe/p/php-codesniffer/php-codesniffer_3.5.8-3_all.deb
Size: 535600
MD5sum: 8b28ddce13730210a9e818eeaa275a79
SHA1: 1407add7b37550e3d4fc57ddb481c3d7a302279e
SHA256: 4a9f027d89742560c2c09045e539859445f9130cafd20ef4fbaf6dc1dab39dc7
SHA512: 2b41c90f846f190d7c2a2ebbd631661663c06b8dbaf0360e83de505469f7f3394d192acbde369e940670e231213d7410fe62daf306667e7f9c5c3dba1c7ea2f7
Homepage: https://github.com/squizlabs/PHP_CodeSniffer
Description-en: PHP, CSS and JavaScript coding standard analyzer and checker
PHP_CodeSniffer is a set of two PHP scripts; the main phpcs script that
tokenizes PHP, JavaScript and CSS files to detect violations of a defined
coding standard, and a second phpcbf script to automatically correct coding
standard violations. PHP_CodeSniffer is an essential development tool that
ensures your code remains clean and consistent.
Description-md5: d2f4e8ca2ac266389e17ef558170507b