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.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners