Prettier PHP plugin
Prettier PHP plugin adds support for the PHP language to Prettier, an opinionated code formatter.
Prettier enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
Note: this plugin can also be integrated with php-cs-fixer.
docs/recipes/php-cs-fixer for integration help,
code can also be found in https://gist.github.com/Billz95/9d5fad3af728b88540fa831b73261733