ItSolutionStuff.com

How to Install Composer using Command Line in Ubuntu?

By Hardik Savani • May 1, 2024
PHP Laravel Installation Ubuntu

Composer through we can get packages from git and use it in our project. But you require to install composer in your system for getting packages. You can get packages for core PHP, Laravel, codeigniter etc.

So, If you are working on ubuntu OS and you require to install composer then this post will help you quickly install composer using terminal command line in your ubuntu system.

First Open your terminal and fire bellow three commands, i listed just three command to install composer, you have to just run one by one:

curl -sS https://getcomposer.org/installer | php


sudo mv composer.phar /usr/local/bin/composer


sudo chmod +x /usr/local/bin/composer

After above command run successfully you can check by following command:

composer

You can see your terminal layout look like as bellow screenshot:

Preview:

I hope it can help you...

Hardik Savani

Hardik Savani

I'm a full-stack developer, entrepreneur, and founder of ItSolutionStuff.com. Passionate about PHP, Laravel, JavaScript, and helping developers grow.

📺 Subscribe on YouTube

We Are Recommending You

Ubuntu PHP bz2 Extension Install Commands Example

Read Now →

How to Install PHP GD Extension in Ubuntu?

Read Now →

How to Increase max_input_vars in PHP Ubuntu?

Read Now →

How to Check Current PHP Version in Ubuntu?

Read Now →

How to Install Composer in Ubuntu Server?

Read Now →

How to Install MySQL in Ubuntu Server?

Read Now →

How to Install PHP in Ubuntu Server?

Read Now →

How to Connect SSH using ppk File Ubuntu?

Read Now →

How to Remove Composer Package in Laravel?

Read Now →

How to Import Database in Mysql using Command Line in Ubuntu?

Read Now →

How to Upgrade PHP Version from 7.3 to 7.4 in Ubuntu?

Read Now →

Install Bootstrap 4 in Angular 9 | How to Add Bootstrap in Angular 9

Read Now →

How to Install Botman Chatbot in Laravel?

Read Now →

Laravel Vue Datatables Component Example

Read Now →