I always come back to search for this tweet I wrote some time ago, which I find extremely useful to install Drupal using composer and the excellent DDEV tool:

Installing #Drupal in seconds with DDEV and Composer

0. export SITE_NAME=mycoolsitename

1. composer create-project drupal-composer/drupal-project:8.x-dev — stability dev no-interaction $SN

2. ddev config — docroot web — projectname $SN — projecttype drupal8

3. ddev start

4. ddev exec

5. drush site-install — account-name=admin — account-pass=[]

I find it much easier to search in Medium or Google for this. You are welcome :-)

--

--