Add PHP Code Formatter to Cloud9
Download php-cs-fixer:
wget http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar -O ~/php-cs-fixer
Move to ~/bin:
mkdir ~/bin
mv ~/php-cs-fixer ~/bin
Make the file executable:
chmod a+x ~/bin/php-cs-fixer
Addthis as custom code formatter for PHP (modify as desired):
php-cs-fixer fix "$file" --rules=@Symfony,@PSR2
Related Posts
- Install Laravel in Cloud9 PHP Workspace
- Upgrade a Cloud9 (c9.io) PHP Workspace to PHP 7.1
- Add phpMyAdmin to a Cloud9 Workspace
- Avoid WPForms Spam by Implementing a Custom Honeypot
- Use Google Fonts Locally With GeneratePress
- Install MySQL 5.7 at Cloud9 Workspace
- Disable Google Fonts Loading When Using the Astra Theme
- Remove All Items from a Wordpress Navigation Menu by Code