Downloading composer via PHP script
I have a php script which downloads the composer.phar. After it has downloaded I run exec() to install the packages. Folder structure is --ROOT --public --composer.josn However, when I run exec('php composer.phar install -d ' . dirname(__DIR__), $out, $return); I get an output of: array(5) { [0]=> string(39) "All settings correct for using Composer" [1]=> string(14) "Downloading..." [2]=> string(0) "" [3]=> string(80) "Composer successfully installed to: /var/www/projects/funny/public/composer.phar" [4]=> string(25) "Use it: php composer.phar" } And the vendor packages aren't installed. Just