1. 程式人生 > >phpstorm create project with composer

phpstorm create project with composer

1.file->new project -> composer project
2.location 填寫目錄
3.php interpreter
4.create 下載composer.phar
5.tool->composer->init composer 生成composer.json
6.切換國內映象

 "repositories": {
    "packagist": {
      "type": "composer",
      "url": "https://packagist.phpcomposer.com"
    }
  }

7.tool->composer->manage dependencies