Home >Development Tools >composer >How to install symfony in composer

How to install symfony in composer

藏色散人
藏色散人forward
2020-01-06 14:27:573127browse

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!

How to install symfony in composer

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:

How to install symfony in composer

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: //m.sbmmt.com/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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete