1)https://www.phpcomposer.com/下载 composer(win);
2)安装成功后在配置中国全量镜像,composer config -g repo.packagist composer https://packagist.phpcomposer.com
3)用composer 安装thinkphp5.1,composer create-project topthink/think
4)在phpstudy中配置好thinkphp5.1框架的域名以及hosts中本地域名;