在您的项目的根目录因为你提到symfony,只需看看symfony标准版的composer.json
https://github.com/symfony/symfony-standard/
或者甚至更好:按照the official instructions并直接使用symfony-standard作为项目的起点.
Start by visiting the Symfony2 download page at 07002. On this page,you’ll see the Symfony Standard Edition,which is the main Symfony2 distribution.