Skip to content

Commit

Permalink
Updated text references to use 11.x. (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk authored May 10, 2024
1 parent db49fc4 commit 55f4e54
Show file tree
Hide file tree
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/).
Expand All @@ -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
Expand Down Expand Up @@ -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": [
Expand Down

0 comments on commit 55f4e54

Please sign in to comment.