Assumes that path/to/subdir
is directory containing composer.json
and composer.lock
files.
Created
June 6, 2017 10:00
-
-
Save ukautz/b4cdfd8b31a895a954526b7a334c6975 to your computer and use it in GitHub Desktop.
Composer install in sub directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
chdir("path/to/subdir"); | |
exec("composer install"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
pre: composer-install-subdir.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment