MAC环境Symfony安装:
```
brew search php
brew install php
php --version
pecl update-channels
pecl search debug
pecl install debug
brew search composer
brew install composer
```
// 使用阿里云镜像地址:
```
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
composer config -g -l
brew search git
brew install git
git --version
```
//安装Symfony-cli
brew install symfony-cli/tap/symfony-cli
mv xxx/xxxx/symfony /usr/local/bin/symfony
symfony -V
symfony check:req
//创建项目
symfony new symfony5
composer install
//没有安装symfony工具包
php bin/console
symfony console
//启动项目
symfony serve
//开发环境
composer req maker --dev
//生产环境
composer install --no-dev
composer require doctrine/annotations
symfony console make:controller -> TestController
php --ini
xdebug.mode = debug
xdebug.idekey = PHPSTORM
composer req debug --dev
composer req orm
composer req test --dev
symfony console make:test -> TestCase
symfony console make:entity -> Comment