When trying to add the Symfony Command Line Tool to PHPStorm, the program gives the following error:

Problem Failed to determine version. Command C: \ Program Files \ XAMPP \ php \ php.exe F: \ sites \ www \ symfony_test \ bin \ console -V Output Symfony version 3.0.2 - app / dev / debug

PhpStorm procedure:

  1. File-> Settings-> Command Line Tools -> Add Symfony Command Line Tool
  2. I choose the path to php.exe
  3. I select the path to the console file (path_to_project \ bin \ console)

    1 answer 1

    You need to wait for the update from PHPStorm, but if you really need it, you can create a Custom Tool in the Command Line Tool Support and then fill in its config. An example .

    You can also write a small tool that can translate data from php bin/console list --format=xml (the list of commands for the Symfony2 console is also taken by analogy) in the format for PHPStorm

     <?xml version="1.0" encoding="UTF-8"?> <framework xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="schemas/frameworkDescriptionVersion1.1.3.xsd" name="azure" invoke="C:\Program Files (x86)\Microsoft SDKs\Windows Azure\CLI\0.6.9\wbin\azure.cmd" alias="azure" enabled="true" version="2"> <help><![CDATA[Windows Azure: Microsoft's Cloud Platform]]></help> <command> <name>help</name> <params>command</params> <help>Display help for a givencommand</help> </command> <command> <name>portal</name> <params>options</params> <help>Opens the portal in a browser</help> </command> <!-- ... --> </framework>