Saturday, February 20, 2016

How to install Composer on Ubuntu


If you are a php developer, you might want to install composer on your ubuntu, because composer is a package dependencies management tool for php, very similar as npm (node js) and bundler (ruby).

Anyway, composer is needed if you want to use laravel framework, so composer is definitely must have for every php programmer.

There are two ways to install composer on ubuntu, automatic install through ubuntu repository or manual install as describe in composer website.

The automatic install through ubuntu repository is pretty easy, all you have to do is intall composer using apt-get install command, like this:

sudo apt-get install composer

Note that i'm using ubuntu 15.10 wily werewolf, composer seems to be available inside the repository, so i don't get any error when running that command.

If you prefer manual install, you can read my article about installing composer on lubuntu, it's basically the same, it works also for ubuntu.

Now that you have composer, why don't you try to setup laravel project, to create laravel project you can run this command:

composer create-project laravel/laravel mylaravelproject --prefer-dist

That command will create laravel project named mylaraveproject, i will discuss more detail about this topic later on different post.



~ see you later ~

No comments:

Post a Comment