: mkdir my-wp-project && cd my-wp-project .
: You only commit your custom code, while third-party packages stay out of version control. download wordpress with composer
WordPress does not have an official Composer package on Packagist, so developers typically use community-maintained forks like John P. Bloch’s WordPress Core or the Roots Bedrock framework. To add WordPress core, use the following commands: : mkdir my-wp-project && cd my-wp-project
WordPress Packagist (WPackagist) mirrors the official WordPress.org directories as Composer packages. Add it to your repositories list: WordPress + Composer + GIT download wordpress with composer
To keep your root directory clean, it is common practice to install WordPress in its own folder. Add these lines to your composer.json under the "extra" key: