Setting Up a Drupal Development Environment with DDEV
DDEV is a powerful tool that simplifies the process of setting up local development environments for PHP applications, including Drupal. In this guide, I'll walk you through the steps to install DD...

Source: DEV Community
DDEV is a powerful tool that simplifies the process of setting up local development environments for PHP applications, including Drupal. In this guide, I'll walk you through the steps to install DDEV and configure a Drupal development environment. Requirements: DDEV Docker Once you have this, create your Drupal project directory: mkdir drupal-site Into your directory run: composer create-project drupal/recommended-project:^9 . At the moment I created this project, running composer create-project drupal/recommended-project . automatically would download Drupal 10, which requires PHP version ">= 8.3.0". This would trigger a fatal error: Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.3.0". You are running 8.1.27. in /var/www/html/vendor/composer/platform_check.php on line 24 because the DDEV container has an older PHP version. That’s why I explicitly asked for Drupal 9 in the command. Next, configure DDEV: ddev config Y