@domenico
To check the version of Symfony, you can use the following methods:
For example:
1 2 3 4 |
"require": { "php": "^7.1.3", "symfony/symfony": "4.4.*" }, |
In this example, the Symfony version is 4.4
.
1
|
symfony version |
This will output the version number of Symfony, for example:
1
|
Symfony 4.4.11 (env: dev, debug: true) |
In this example, the Symfony version is 4.4.11
.
@domenico
To check the Symfony version, you can use either of the following methods:
1
|
php bin/console --version |
This will display the Symfony version installed in your project.
Note: If you don't have Symfony installed in your project, you may need to run the following command in your project's root directory to install the Symfony CLI first:
1
|
composer require symfony/cli --dev |
Once installed, you will be able to use the Symfony CLI commands.
Note: Symfony has different versions, such as Symfony 2, Symfony 3, Symfony 4, Symfony 5, etc. Make sure to check the version that matches your project.