Mona Mona - 5 months ago 9
PHP Question

Composer downloads project under php folder

My composer.phar file is under

xampp/php
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 :
xampp/php/myProject
. Although it should download the project under htdocs folder.

How to download a project through composer under htdocs folder?

Answer

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)

Comments