Prettier - Code formatter with PHP support on VSCode
Less than 1 minute
Prettier - Code formatter with PHP support on VSCode

Just a quick note: To get php support when you type 'format document' on the Command Palette, just run the next commands:
cd ~/.vscode/extensions/esbenp.prettier-vscode-x.x.x/ # x.x.x is the current version of the extension
npm install @prettier/plugin-php