How to install WordPress with Composer?

Using roots Bedrock for a few years, I gladly recommend it. Core versions are all available and are synced by roots.io technical team.

Using WordPress with composer would allow you to have dependencies (WP core, plugins, themes, and other PHP libs) all managed with composer versions. Bedrock will also ensure that no core file is edited as they are stored as a vendor.

Automatic deployment process are done just like with every other PHP application.

The downside of it, is that you won’t benefit automatic updates for your app and you will have to handle them yourself.