Composer Require
composer_requireInstall one or more Drupal modules or PHP packages via Composer, accepting space-separated names plus optional version and dev flags.
Instructions
Require one or more packages via composer.
Several packages may be given at once, space separated, the way
composer require itself accepts them. They used to arrive as a single
argv token, so composer read "drupal/pathauto" as a version constraint
on "drupal/token" and refused the command with "Could not parse version
constraint" -- a confusing error for the ordinary request "install
these two modules". A package name never contains a space, so the
split is unambiguous.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dev | No | ||
| package | Yes | ||
| version | No | ||
| working_dir | No | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||