Skip to content

Instantly share code, notes, and snippets.

@ukautz
Created June 6, 2017 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ukautz/b4cdfd8b31a895a954526b7a334c6975 to your computer and use it in GitHub Desktop.
Save ukautz/b4cdfd8b31a895a954526b7a334c6975 to your computer and use it in GitHub Desktop.
Composer install in sub directory

Assumes that path/to/subdir is directory containing composer.json and composer.lock files.

<?php
chdir("path/to/subdir");
exec("composer install");
---
pre: composer-install-subdir.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment