Home >Development Tools >composer >How to install symfony in composer
The following tutorial column of composer will introduce to you how to install symfony with composer. I hope it will be helpful to friends who need it!
1. Install
composer create-project symfony/framework-standard-edition my_project_name
or install a specific version:
composer create-project symfony/framework-standard-edition my_project_name "2.3.*"
2. Run
cd my_project_name/ php app/console server:run
Access: localhost:8000
It is successful when you see the welcome interface
The author installed version 3.2.7 at this time:
3. Check the configuration
Method one:
php bin/symfony_requirements
Method two:
Access in the browser :localhost:8000/config.php
View the configuration and install the corresponding configuration.
For more composer-related technical articles, please visit the composer column: https://www.php.cn/tool/composer/
The above is the detailed content of How to install symfony in composer. For more information, please follow other related articles on the PHP Chinese website!