Mona Mona - 4 months ago 5
PHP Question

Composer downloads project under php folder

My composer.phar file is under

folder. When I download cakephp through composer (by using command :
php composer.phar create-project --prefer-dist cakephp/app myProject
), it downloads the project folder (i.e. myProject folder) under :
. Although it should download the project under htdocs folder.

How to download a project through composer under htdocs folder?


Just indicate complete path to your project: php composer.phar create-project --prefer-dist cakephp/app /path-to-htdocs/myProject

(disclaimer: I just tried with a global composer instalation, not throught a .phar, but it should work too)