Why IT Support Services?

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas metus nulla, commodo a sodales sed, dignissim pretium nunc. Nam et lacus neque. Ut enim massa, sodales tempor convallis et, iaculis ac massa.

Contact Info
 
Loader

 

Title:

Install "Composer"

Summary:

This article describes how to install and configure composer, a PHP dependency manager. Composer enables you to manage dependencies for each project independently, and is used by frameworks such as Laravel.

Solution:

To install composer, follow these steps:

1. Connect to your server using SSH, ensuring you have super user privileges. 

2. To configure your shell environment to use composer, type the following commands. Replace username with your account username:

    echo 'alias composer="php -d allow_url_fopen=On /home/username/composer.phar"' >> ~/.bashrcsource ~/.bash

    3. To download the composer installer, type the following commands:

    cd ~
    curl -k -O https://getcomposer.org/installer

    4. To install composer, type the following command:

    php -d allow_url_fopen=On installer

    Consider:

    Now you have installed composer please remember to add upgrading it to your normal house keeping tasks.  You can of course automate an upgrade schedule if you choose.

    Author(s):

    Parth Kundariya on 05/02/2019 at 12:41 ( first published )

    Parth Kundariya on 18/02/2019 at 09:45 ( last updated )

    Top