drupal8 install custom module using composer code example
Example: download specific version of drupal using composer
composer create-project drupal-composer/drupal-project:8.x-dev my_site_name_dir --no-interaction --no-install
composer create-project drupal-composer/drupal-project:8.x-dev my_site_name_dir --no-interaction --no-install