How to Install Composer Manually

Last Updated at : August 14, 2017 By - Usama Muneer | 2606


    Manually Installing composer is an advanced technique, however there are several reasons why a developer might prefer this reason instead of using the interactive installation routine. The interactive installation checks your PHP installation to ensure that:

    • Sufficient version of PHP is being installed on your machine
    • .phar files are executable
    • Certain directory permissions are sufficient
    • Certain php.ini settings are set

    Since manual installation performs none of these checks. Below is how you can install composer manually on your machine.


    The Path

    You can simply chose your path whether it be $HOME/local/bin or any directory of your choice. But one thing to make sure is, it should be in your $PATH variables. This will allow the composer command being available.

    Is that it?

    Yes, it is. Now you can run composer in your machine globally.

    Running Composer

    For running composer from inside of any directory. Simply type

    composer install


    blog user
    Usama Muneer

    A web enthusiastic, self-motivated & detail-oriented professional Full-Stack Web Developer from Karachi, Pakistan with experience in developing applications using JavaScript, WordPress & Laravel specifically. Loves to write on different web technologies with an equally useful skill to make some sense out of it.

    Related Posts

    As you may know, Composer is a PHP dependency manager that manages the versions of the PHP libraries, tools & frameworks that we utilise in our applications.

    In this article, we'll go through a brief introduction on setting up PSR4 Autoloading using Composer within your project.

    What is composer?
    October 1, 2017 By - Usama Muneer

    If you're a PHP developer and has been coding up for years, you may have noticed that while developing in PHP, you have to re-invent the wheel every single time.

    Over the years, Laravel has brought so much excitement in developing applications with its out of the box code-base