Skip to content
On this page

Composer

DDEV has built-in support for composer. DDEV has a special command called

bash
ddev composer create "<package>:<version>"

It is basically a wrapper around composer create-project, but it moves all files to the project folder root automatically after installation.

This is quite handy, because it is very simple to setup a php project and pull in a project repository, e.g. getkirby/starterkit:

mkdir my-new-project
cd my-new-project/
ddev config --project-type=php
ddev composer create getkirby/starterkit
ddev launch

TODO: Add comment by rfay (https://github.com/drud/ddev/issues/4058#issuecomment-1201848592)

Read more in the official docs.

Connect with the community 🤗

There are dedicated CMS channels on DDEV discord, e.g. for Laravel, WordPress, typo3, CraftCMS, Drupal, etc.!