When you call us, one of the early questions we’ll ask is which version of the Symfony framework you’re using.
Here’s how you find which Symfony version you’re running.
Try running each of the following at the command prompt until you get an answer. I show a sample response for each:
$ php bin/console --version
Symfony 5.1.1 (env: prod, debug: false)
$ php app/console --version
Symfony version 2.4.1 - app/dev/debug
$ php ./symfony --version
symfony version 1.4.21-punkave (/var/www/p/releases/20200504161617/lib/vendor/symfony/lib)
If your project is running on Microsoft Windows, change the
\ in the calls above.
Can’t run a command, or only have access to the project files? See if one of the following files exists:
Found it? Look inside the file for a line like:
const VERSION = '5.0.4';
that’s the Symfony version number.
Did neither file exist? You may be running a much older version of Symfony. Have a look for this file:
If it exists, look inside and find the line that looks like this:
Supporting Symfony applications in finance, industry and government. Symfony services from the small but amazing company. "Adopting" existing projects a speciality. Book a free consultation.Contact Peter today