👾 your cto
19 subscribers
2 photos
13 links
Channel about development and CTO daily stuff. In russian: @techdir

Contact me: @ilya0
Download Telegram
I can't imagine my life without PHP CodeStyle Fixer and here is why.

https://github.com/FriendsOfPHP/PHP-CS-Fixer

This thing automatically makes your code PSR-1 & PSR-2 compatible, cleans spaces, makes arrays shorter ([] instead of array()) and makes code written by different developers looks similar. Further reading will be easier and it's lowering CTO butthurt level about exess spaces before the if.

This tool has a plugin for every popular IDE so you can make code looks perfect just by pressing the hotkey. Or even on every save. But it's too much. Just by hotkey is OK.

Here is our config which are we using. You could use it but don't forget to read the docs.
https://gist.github.com/chekalskiy/c79c77657a18419125c72c86fe333b86

#library #php #psr2