Best practice to display the version of a Symfony application to the user? Best practice to display the version of a Symfony application to the user? symfony symfony

Best practice to display the version of a Symfony application to the user?


You could try versioning-bundle. From their doc:

  • Adds additional parameter to your parameters.yml file and keeps itinline with your current application version.
  • Basic Version handlersimplemented for manual and git tag versioning


with this example now you can do everything :

   \Symfony\Component\VarDumper\VarDumper::dump(\Symfony\Component\HttpKernel\Kernel::VERSION);

This is a Hardcoded const in source of symfony.

You can :

  • code your own const with this
  • function for request this info
  • trigger or listener
  • etc.....