What caused me to write this article was after a frequent failed lint test for an https://cdli.mpiwg-berlin.mpg.de/ that I'm currently contributing to via https://summerofcode.withgoogle.com/programs/2022/projects/pBbCdRWu. wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v3.10.0/php-cs-fixer.phar -O php-cs-fixer chmod +x php-cs-fixer sudo mv php-cs-fixer /usr/local/bin/php-cs-fixer sudo chown -R user name: /usr/local/bin/php-cs-fixer Note: Adding sudo often require that you put password- please put your password.
Then to lint a php file, open that file with a text editor and in the terminal you can run php-cs-fixer fix
Next, Open a php file that you will like to lint using vscode text editor.