PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, January 17, 2022

[FIXED] Composer downloads project under php folder

 January 17, 2022     composer-php, php     No comments   

Issue

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?


Solution

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)



Answered By - Sergeon
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing