##  [Installing Drupal 11 with Composer](/hc/documentation/learn-drupal/getting-started/installing-drupal-11-composer) 

Composer is a nifty tool that helps you manage Drupal and all its associated parts (modules, themes, libraries). Before diving in, be certain you have [Composer installed](https://getcomposer.org/doc/00-intro.md) on your computer. For Drupal 11, you will need Composer 2.7.0 or higher and PHP 8.3 or higher.

When using Drupal 11, it's wise to use the composer template found at [drupal/recommended-project](https://github.com/drupal/recommended-project). This template ensures that Drupal Core dependencies are the exact same version as the official Drupal release. There are alternative methods, but this one is top-notch.



## **Initiate a project**

```php
composer create-project drupal/recommended-project my_site_name_dir
```

Doing this creates a project in 'my\_site\_name\_dir' and automatically runs `composer install` to fetch the newest stable version of Drupal 11 and all its dependencies.

Note that your 'my\_site\_name\_dir' will house files that should be kept outside of your web root, away from the prying eyes of the web server. The web root will be 'my\_site\_name\_dir/web'.



## Composer installation via Docker

If you're employing a Docker-based workflow, you might not have Composer and its dependencies installed yet. In that case, use the following command to create your Drupal project:

```php
docker run --rm -i --tty -v $PWD:/app composer create-project drupal/recommended-project my_site_name_dir --ignore-platform-reqs
```



## Set up Drupal using the standard web interface

Once Composer has finished downloading the necessary packages, simply direct your browser to your site's URL and kick off the setup. You'll be prompted for database credentials, an admin user name, and some basic info.



## Get Drupal up and running through the command line

Drush allows you to install Drupal from the command line. To add Drush to your project, type: `composer require drush/drush` and then use [drush site:install](https://www.drush.org/latest/commands/site_install/) to launch the command line setup wizard. Without any arguments, it will install the standard profile and only ask for your database credentials.

```php
drush site:install
```