php -r "readfile('http://symfony.com/installer');" > symfony.phar
切换到symfony.phar所在的目录。执行如下命令建立symfony项目php
php symfony new my_project_name