Mona Mona - 1 year ago 89
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?

Answer Source

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)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download