php-symfony-consoleHow to get PHP Symfony version in console?
To get the version of PHP Symfony in the console, you can use the following command:
$ php bin/console --version
This will output the version of Symfony, for example:
Symfony 4.4.2 (env: dev, debug: true)
The command consists of the following parts:
php
: the PHP executablebin/console
: the Symfony console executable--version
: the argument to get the version
For more information, please refer to the Symfony documentation.
More of Php Symfony Console
- How to view the log using the Symfony console in PHP?
- How to list Symfony console commands in PHP?
- How to create a controller using the Symfony console in PHP?
- How to run Symfony PHP app/console command on server?
- How to create a Symfony console application in PHP?
- How to use the Symfony console in PHP?
- How to clear the cache using the Symfony console in PHP?
See more codes...