2. php -r "readfile('http://symfony.com/installer');" > symfony
3. 把symfony移动到projects(你自己的工作目录) move symfony c:projects
4. c:> cd projects/
c:projects> php symfony new my_project_name
5. php D:amp estmy_project_nameinconsole server:run
如果正常就开始创建,
一般会有这个错误:
[GuzzleHttpExceptionRequestException]
cURL error 60: SSL certificate problem: unable to get local issuer certificate
[GuzzleHttpRingExceptionRingException]
cURL error 60: SSL certificate problem: unable to get local issuer certificate
解决方案:
1.下载 cacert.pem :https://curl.haxx.se/ca/cacert.pem
2.在php.ini里面加上这个:
curl.cainfo = "[pathtothisfile]cacert.pem" 如:curl.cainfo = "D:phpStudyphp55ncacert.pem"
3.重新symfony的步骤再走一遍
| 欢迎光临 一起源码网 (https://www.171739.xyz/) | Powered by Discuz! X3.3 |