Drupal DDEV setup

drupal/composer-ddev-setup

By rang501@gmail.comMARKDOWN
Drupal

Spec

Verify that DDEV is available

If the .ddev directory does not exit, run ddev config command or create it directly to create suitable Drupal configuration file.

Create a clean, latest Drupal installation using Composer if there is no existing installation.

If Composer is available, install Drupal using the official command:
composer create-project drupal/recommended-project drupal

Add drush/drush dependency

After installation, if Drush is available, perform a site install using the minimal profile.
Follow current best practices and avoid deprecated commands.