You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12
Original file line number
Diff line number
Diff line change
@@ -129,3 +129,15 @@ section of composer.json:
129
129
### How do I switch from packagist.drupal-composer.org to packages.drupal.org?
130
130
131
131
Follow the instructions in the [documentation on drupal.org](https://www.drupal.org/docs/develop/using-composer/using-packagesdrupalorg).
132
+
133
+
### How do I specify a PHP version ?
134
+
135
+
Currently Drupal 8 supports PHP 5.5.9 as minimum version (see [Drupal 8 PHP requirements](https://www.drupal.org/docs/8/system-requirements/drupal-8-php-requirements)), however it's possible that a `composer update` will upgrade some package that will then require PHP 7+.
136
+
137
+
To prevent this you can add this code to specify the PHP version you want to use in the `config` section of `composer.json`:
0 commit comments