dthh5038 2016-06-18 22:16
浏览 156
已采纳

Composer在php文件夹下载项目

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?

  • 写回答

1条回答 默认 最新

  • dongmi9494 2016-06-18 22:33
    关注

    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)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 VB.NET操作免驱摄像头
  • ¥15 笔记本上移动热点开关状态查询
  • ¥85 类鸟群Boids——仿真鸟群避障的相关问题
  • ¥15 CFEDEM自带算例错误,如何解决?
  • ¥15 有没有会使用flac3d软件的家人
  • ¥20 360摄像头无法解绑使用,请教解绑当前账号绑定问题,
  • ¥15 docker实践项目
  • ¥15 利用pthon计算薄膜结构的光导纳
  • ¥15 海康hlss视频流怎么播放
  • ¥15 Paddleocr:out of memory error on GPU