Skip to content
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms & Conditions
  • Site Map

XpertPhp

Expertphp Is The Best Tutorial For Beginners

  • Home
  • Javascript
    • Jquery
    • React JS
    • Angularjs
    • Angular
    • Nodejs
  • Codeigniter
  • Laravel
  • Contact Us
  • About Us
  • Live Demos
How To Install PHP Composer in Ubuntu 18.04

How to Install Composer on Ubuntu 16.04 and 18.04

Posted on September 3, 2019June 11, 2020 By XpertPhp No Comments on How to Install Composer on Ubuntu 16.04 and 18.04

Today, We will discuss about how to install composer on Ubuntu 16.04 and 18.04. Ubuntu is a free and open-source operating system and it is a popular operating system for cloud computing.

Introduction Composer

The composer is a package manager libraries. it is managing the PHP application and it is used for specially laravel framework. let’s see the below example.

Install Dependencies for Composer

The PHP version must be installed to 5.3.2 or higher version for the installation composer. PHP stands for Hypertext Preprocessor and it’s a run based on server-side. so we need to install apache server MySQL and PHP. if you didn’t install PHP in your system then you can install through the below article URL.

Read Also: How To Install Apache MySQL And PHP On Ubuntu

Install Composer on Ubuntu

We will download the composer using the below command.

PHP
1
2
3
sudo apt-get update
sudo apt-get install curl
sudo curl -s https://getcomposer.org/installer | php

Now we move the composer.phar file into the bin folder and set the permission for all users.

PHP
1
2
sudo mv composer.phar /usr/local/bin/composer
chmod +x /usr/local/bin/composer

check composer installed or not ubuntu

After the installation composer, we will check the composer is installed or not using the below command.

PHP
1
composer

PHP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/ ____/___  ____ ___  ____  ____  ________  _____
/ /   / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__  )  __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
                    /_/
Composer version 1.8.6 2019-09-03 23:17:20
 
Usage:
  command [options] [arguments]
 
Options:
  -h, --help                     Display this help message
  -q, --quiet                    Do not output any message
  -V, --version                  Display this application version
      --ansi                     Force ANSI output
      --no-ansi                  Disable ANSI output
  -n, --no-interaction           Do not ask any interactive question
      --profile                  Display timing and memory usage information
      --no-plugins               Whether to disable plugins.

Update Composer on Ubuntu

If you have already downloaded or installed the composer and you want to update the composer on ubuntu then you can below command.

1
sudo composer self-update

Please follow and like us:
error
fb-share-icon
Tweet
fb-share-icon

Recommended Posts:

  • How to Install MariaDB on Ubuntu 18.04
  • How to Enable PHP in Apache2
  • how to Install Apache MySQL and PHP on Ubuntu 16.04 and 18.04
  • how to install laravel 7 on ubuntu 16.04 and 18.04
  • How To Install React Js On Ubuntu 16.04 And 18.04
Ubuntu Tags:install composer, install composer for laravel, install composer on Ubuntu, ubuntu 18.04

Post navigation

Previous Post: how to Install Apache MySQL and PHP on Ubuntu 16.04 and 18.04
Next Post: How to Implement Google Column Chart using Codeigniter

Categories

  • Ajax
  • Angular
  • Angularjs
  • Bootstrap
  • Codeigniter
  • Css
  • Htaccess
  • Javascript
  • Jquery
  • Laravel
  • MongoDB
  • MySql
  • Nodejs
  • Php
  • React JS
  • Shopify Api
  • Ubuntu

Tags

angular 10 tutorial angular 11 ci tutorial codeigniter 4 image upload Codeigniter 4 Tutorial codeigniter tutorial CodeIgniter tutorial for beginners codeigniter with mysql crud operation eloquent relationships file upload File Validation form validation Image Upload jQuery Ajax Form Handling jquery tricks jquery tutorial laravel 6 Laravel 6 Eloquent Laravel 6 Model laravel 6 relationship laravel 6 relationship eloquent Laravel 6 Routing laravel 7 Laravel 7 Eloquent laravel 7 routing laravel 7 tutorial Laravel 8 laravel 8 example laravel 8 tutorial laravel 9 example laravel 9 tutorial Laravel Framework laravel from scratch Laravel Socialite laravel social login nodejs pagination payment gateway php with mysql react js tutorial rewrite rule send mail validation wysiwyg editor

Latest Posts

  • How to Convert Date and Time from one timezone to another in php
  • how to get current date and time in php
  • Drag and Drop Reorder Items with jQuery, PHP & MySQL
  • Laravel 9 Toastr Notifications Example Tutorial
  • Laravel 9 CRUD Operation Example Using Google Firebase
  • Laravel 9 CKeditor Image Upload With Example
  • Laravel 9 Summernote Image Upload With Example
  • Laravel 9 Stripe Payment Gateway Integrate Example
  • How To Send Email Using Mailtrap In Laravel 9
  • Laravel 9 Fullcalendar Ajax Example Tutorial

Tools

  • Compound Interest Calculator
  • Hex to RGB Color Converter
  • Pinterest Video Downloader
  • Age Calculator Online
  • Convert JSON to PHP Array Online
  • JavaScript Minifier
  • CSS Beautifier
  • CSS Minifier
  • JSON Beautifier
  • JSON Minifier

Copyright © 2018 - 2022,

All Rights Reserved Powered by XpertPhp.com