0:00
Hello there and welcome to LinuxS2 and in this card I'm going to show you how to
0:08
install Composer on Linux. Composer is a PHP package management tool and it is used to install any required libraries
0:18
for your pHP related projects. So it is similar to NPM that we have in Node.js
0:23
So the installation is pretty straightforward. So before installing the Composer, we need to have PHP install in the system
0:29
So this is Ubuntu and I can easily install it using the installation command that is pseudo APD install PHP
0:37
And hit the enter and this will install the latest available PHP version in the system
0:43
So if you are using any different distribution other than the Ubuntu, then you can use your installation command for your particular distribution
0:50
So after having PHP install, make sure it is properly configured. Just hit the PHP hyphen B and this will show you a version of the PHP that is installed
0:59
in the system. Now what we need to do, we need to get the installer for the composer
1:06
So we will use curl to get it. So just type curl
1:21
So this has downloaded this file here. Let me just show you Now we need to move the file in the bin directory so that we just downloaded Now we need to move the file in the bin directory so that we will we can use the composer command In order to move it to the wind directory just type pseudo move command and the file name
1:38
and the part to the bin directory. After moving the file to the bin directory, we need to make it executable
1:52
To make it an executable file, just execute this command. Now we can use the Composer Command Line tool for the purpose we want
2:08
And here you can see it is showing up this Aski Composer text and the Composer version that
2:14
is installed in the system. Now this is the latest version of the Composer tool that we just installed in the system
2:20
In future if you want to upgrade it then you can use this command to do just that
2:26
pseudo-composer and self-update and this will update the composer version but as
2:38
it's the latest version so this is saying you are already using the composer version
2:42
which is the latest so that was the guide on how to install composer on a Linux
2:48
environment I hope you find this video helpful if you did then do not forget to
2:52
subscribe to the channel let me know what you think about it in the comment section below and I shall catch you in the next one till then take care and keep enjoying Linux