My PhpStorm file watcher for php-cs-fixer

I started using PHP Code Style Fixer long time ago for automatically fix my code style. You can use this tool via command line. But also you can add a file-watcher for PhpStorm. It runs php-cs-fixer on every file save. So you dont need to run php-cs-fixer manually.

Here you can download watchers.xml : https://gist.github.com/shibby/6cb1fcafe3747ce8e2f7aa0e8dc2b516

All you need to do is import xml file from PhpStorm Settings->File Watchers and installing php-cs-fixer to /usr/local/bin folder.

 

2 Comments

  1. Bununla başladım, daha sonra PSR kavramını uçtum bir anda.. Hep görüyorum, denk geliyorum ama ne olduğunu merak etmemiştim.

    Şimdi standartları okumaya başladım, bakalım ne kadar takip ediyormuşum standartları..

Leave a Reply to Oral ÜNALCancel Reply

Your email address will not be published. Required fields are marked *