How-to Install PHP Composer on Linux Mint 18 Sarah LTS Linux

September 8th, 2016 by thelinuxevangelist

Composer QuickStart for Linux Mint 18 Sarah




This Short Tutorial Shows You Step-by-step How-to Install the PHP Composer on Linux Mint 18 Sarah LTS 32/64bit GNU/Linux Desktop/Server.

Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.

Composer Manages Packages or Libraries on a per-project basis, Installing them in a directory Inside your Project.

PHP Composer Installation for Linux Mint 18 Sarah - Featured
  1. Open a Command Line Terminal Window
    (Press “Enter” to Execute Commands)

    PHP Composer Installation for Linux Mint 18 Sarah - Open Terminal
  2. Downloading PHP Composer
    Here is described a System wide Installation, for a Local one adapt the commands accordingly.

    sudo php -r "copy('http://getcomposer.org/installer', 'composer-setup.php');"

    If Got “User is Not in Sudoers file” then Look: Solution

    sudo php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
    sudo php composer-setup.php
    sudo php -r "unlink('composer-setup.php');"
  3. Relocating Composer

    sudo mv composer.phar /usr/local/bin/composer
  4. Testing Composer Installation

    composer -V

    The Command will Shows up the Composer Version…

(Visited 49 times, 1 visits today)
Share on Tumblr

Tags: , , , , , , , , , , , , , ,


Comments are disabled