My goal is to run the Composer require command to initialize the Symfony Console project.
When running the require command, I believe that you can limit the required package to a specific version.
I am considering using this to stick with the longer release version of Symfony, which will be supported for longer.
According to the Symfony Release Process, the current version of LTS is 3.4 .
According to Composer require command documentation and Composer version restrictions documentation , package and version can be specified as: symfony/console:~3.4 .
However, when I run the composer command to install symfony / console 3.4 in an empty directory, I get the following errors. (I have PHP and Composer installed on my MacOS High Sierra):
$ mkdir foo $ cd foo $ composer self-update You are already using composer version 1.6.2 (stable channel). Johns-MBP:foo jw$ php
I created a new directory, changed it, ensured that the composer was updated to the latest version, and ensured that PHP was 7. *.
$ composer require symfony/console:~3.4 No composer.json in current directory, do you want to use the one at /Users/me/Documents/Projects/FilterProject/filter-environment? [Y,n]? Y ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - Conclusion: don't install symfony/console v3.4.3 - Conclusion: don't install symfony/console v3.4.2 - Conclusion: don't install symfony/console v3.4.1 - symfony/process v2.6.4 conflicts with symfony/console[v3.4.0]. - symfony/console v3.4.0 conflicts with symfony/process[v2.6.4]. - Installation request for symfony/console ~3.4 -> satisfiable by symfony/console[v3.4.0, v3.4.1, v3.4.2, v3.4.3]. - Installation request for symfony/process (locked at v2.6.4, required as ~2.0) -> satisfiable by symfony/process[v2.6.4]. Installation failed, reverting ./composer.json to its original content.
I am very familiar with Symfony and therefore may not understand the relationship between the version number used for the Symfony kernel and the version number used by Symfony / console.
Which composer team launches the require version of the LTS Symfony Console in a new project?