composer
Collection: community.general
Full Name: parallax.community.general.composer
Aliases: community.general.composer, composer
Synopsis
Manage composer
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| command | string | install | Composer command to run (install, update, require) | |
| working_dir | string | yes | Directory of your project (where composer.json lives) | |
| no_dev | bool | false | Disables installation of require-dev packages | |
| prefer_dist | bool | false | Forces installation from package dist | |
| prefer_source | bool | false | Forces installation from package sources | |
| optimize_autoloader | bool | false | Optimize autoloader during autoloader dump | |
| no_scripts | bool | false | Skips the execution of all scripts defined in composer.json | |
| no_plugins | bool | false | Disables all plugins | |
| executable | string | composer | Path to PHP Composer executable |
Example
- name: Example composer task
composer:
working_dir: <your_working_dir>