Use composer to install PHP dependencies for a directory
Test to see if the vendor directory exists in this directory
CLI Example:
salt '*' composer.did_composer_install /var/www/application
Install composer dependencies for a directory.
If composer has not been installed globally making it available in the system PATH & making it executable, the composer and php parameters will need to be set to the location of the executables.
CLI Example:
salt '*' composer.install /var/www/application
salt '*' composer.install /var/www/application no_dev=True optimize=True
Update composer itself.
If composer has not been installed globally making it available in the system PATH & making it executable, the composer and php parameters will need to be set to the location of the executables.
CLI Example:
salt '*' composer.selfupdate
Update composer dependencies for a directory.
If composer install has not yet been run, this runs composer install instead.
If composer has not been installed globally making it available in the system PATH & making it executable, the composer and php parameters will need to be set to the location of the executables.
CLI Example:
salt '*' composer.update /var/www/application
salt '*' composer.update /var/www/application no_dev=True optimize=True
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 2015.5.2