Checking Composer version in Command Line Interface

Posted on

Operating System : Ubuntu 16.04 (Xenial Xerus)

Composer : 1.2.0

What is the usage of a composer ?. Composer in the context of PHP programming language is considered as a dependency manager for PHP which is helping PHP developers or programmers to develop web application based on sophisticated and more complex framework such as Laravel, Symfony, etc.

To be able to use a composer normally, it means that we have to install the composer first. But for a quick information to see the version of the composer itself, we can just type the following command in the user’s shell bash prompt. We can get it when we are in the single user mode of the operating system. But if we are in the Graphical User Interface mode currently in the operating system, simply execute the terminal or utility which is displaying Command Line Interface. Type the command below :

composer --version

As we can see below the output’s sample of executing the above command :

username@hostname:/var/www/html$ composer --version
Composer version 1.2.0 2016-07-19 01:28:52
username@hostname:/var/www/html$

 

Leave a Reply