Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated text references to use 11.x.
Browse files Browse the repository at this point in the history
AlexSkrypnyk committed May 9, 2024

Verified

This commit was signed with the committer’s verified signature.
1 parent db49fc4 commit 311d714
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Composer template for Drupal projects

[![CI](https://github.com/drupal-composer/drupal-project/actions/workflows/ci.yml/badge.svg?branch=10.x)](https://github.com/drupal-composer/drupal-project/actions/workflows/ci.yml)
[![CI](https://github.com/drupal-composer/drupal-project/actions/workflows/ci.yml/badge.svg?branch=11.x)](https://github.com/drupal-composer/drupal-project/actions/workflows/ci.yml)

This project template provides a starter kit for managing your site
dependencies with [Composer](https://getcomposer.org/).
@@ -16,7 +16,7 @@ for your setup.
After that you can create the project:

```
composer create-project drupal-composer/drupal-project:10.x-dev some-dir --no-interaction
composer create-project drupal-composer/drupal-project:11.x-dev some-dir --no-interaction
```

With `composer require ...` you can download new dependencies to your
@@ -123,15 +123,15 @@ section of composer.json:

### How do I specify a PHP version?

This project supports PHP 8.1 as minimum version (see [Environment requirements of Drupal 10](https://www.drupal.org/docs/system-requirements/php-requirements)), however it's possible that a `composer update` will upgrade some package that will then require PHP 8.1+.
This project supports PHP 8.3 as minimum version (see [PHP requirements](https://www.drupal.org/docs/system-requirements/php-requirements)), however it's possible that a `composer update` will upgrade some package that will then require PHP 8.3+.

To prevent this you can add this code to specify the PHP version you want to use in the `config` section of `composer.json`:

```json
"config": {
"sort-packages": true,
"platform": {
"php": "8.1.13"
"php": "8.3.1"
}
},
```
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "drupal-composer/drupal-project",
"description": "Project template for Drupal 10 projects with Composer",
"description": "Project template for Drupal 11 projects with Composer",
"type": "project",
"license": "GPL-2.0-or-later",
"authors": [

0 comments on commit 311d714

Please sign in to comment.