symfony采坑

2018年7月31日21:43:17php

安装html

首先安装composer 注意laravel

windows下注意windows

[curl]
 
curl.cainfo =E:\phpStudy\PHPTutorial\php\php-7.0.12-nts\cacert.pem

[openssl]
 
openssl.cafile=E:\phpStudy\PHPTutorial\php\php-7.0.12-nts\cacert.pem
 
cacert.pem https://curl.haxx.se/docs/caextract.html
不会composer 请看 https://www.cnblogs.com/zx-admin/p/9212286.html
 
注意目前经常使用的3.4和4.1区别比较大
4.1须要php7.1以上,并且翻译的文档目前没有中文的
3.4 最好php5.4以上
测试的是php-7.0.12,若是是新项目建议 4.1 http://www.phpbenchmarks.com/en/comparator/frameworks.html 性能不错
3.4安装
php -r "readfile('http://symfony.com/installer');" > symfony

php symfony new E:\phpStudy\PHPTutorial\WWW\my_project 3.4 能够指定版本也能够不执行

4.1安装php7

composer create-project symfony/skeleton E:\phpStudy\PHPTutorial\WWW\project

须要php7.1以上否则报错composer

 

首先谈下demo代码初始感受,很简单,可是目录名称都不算特别准确,不像tp laravelcurl

可是感受起来还不错性能

直接基于php运行测试

php bin/console server:run
http://localhost:8000

注意在项目根目录url

相关文章
相关标签/搜索