How to Install Composer – Explained

Composer is one of the most critical apps for a modern day PHP developer. Get it quickly and easily installed with the instructions from this video.

If you have any errors, then watch one of the follow up videos covering each error in details.
Errors – Permission Denied:
Directory Does not Exist:

Follow me on Twitter:
Tons more at

tags: install, composer, php, terminal, help, error, package, mac, yosemite, jacurtis, programmer, command line, OS X, linux, unix, windows, php.



  • and if you have a windows computer and no terminal

    Girlifornia Magazine
    Posted February 20, 2020
  • I love you. <3

    Colobri Studios
    Posted February 20, 2020
  • Great tutorial!, Very helpful was struggling until I saw this

    Posted February 20, 2020
  • thank u very much

    Darius Paul Bacate
    Posted February 20, 2020

    Programming Expert
    Posted February 20, 2020

    Programming Expert
    Posted February 20, 2020
  • Great tutorial

    Posted February 20, 2020
  • Thank you very much… I enjoyed your instruction.

    Ricardo DaCosta
    Posted February 20, 2020
  • 4:10 bash: php: command not found Please help me!

    Souza Lima
    Posted February 20, 2020
  • How can I remove composer from my mac? I don't know where I set composer.phar I installed Laravel 5.2 and now I want to start using Laravel 5.4?
    Plz help

    Sumayah Abualkhair
    Posted February 20, 2020
  • Nice video. It helped install composer. Thanks!

    Posted February 20, 2020

    John Rembo
    Posted February 20, 2020
  • I can't use curl function

    G T
    Posted February 20, 2020
  • mv is not recognized as an internal or external command, i got this error in cmd

    Posted February 20, 2020
  • Can you please add to this series, like installing frameworks with full explanations, etc.?

    Also, just want to say thanks for making this. I'm a subscriber to Treehouse, Tutsplus, and more but NONE have went into detail literally line for line like you have. I've watched all of their videos and didn't even think to wonder what a curl request was. Thanks so much for this!

    Clovis Shropshire
    Posted February 20, 2020
  • i am using xampp server on my mac osx.. I tried to run curl and it said detect_unicode setting must be disabled.
    I tried to add the detect_unicode = Off inside my php.ini file then restart apache..

    still doesn't work..

    The Last Code Bender
    Posted February 20, 2020
  • this helped me…. thanks

    Soumen Pasari
    Posted February 20, 2020
  • Very simplest with your explinations.

    Marcel Polo
    Posted February 20, 2020
  • I was having a lot of problems, I could not find the curl command code to paste into terminal on the website (recent update or me using Sierra) and every instruction I followed on the composer website led to errors. in the end I paused the video and typed in the curl line.
    curl -sS | php
    your explanation was extremely helpful.I could not of done it with out your help. a heart felt thank you

    Posted February 20, 2020
  • Very clear! btw it's my first comment on youtube

    Shengjie Yang
    Posted February 20, 2020
  • Man fuck this.
    Only getting errors.

    $ php -r "copy('', 'composer-setup.php');"
    bash: php: command not found

    How do you even download PHP?? Since when is PHP a fucking program. So confused.

    Posted February 20, 2020
  • Thanks a lot!!! 🙂

    Ryan Bollenbach
    Posted February 20, 2020
  • Vídeo excelente! Obrigada! Thanks!

    Thais Cristine
    Posted February 20, 2020
  • Thank you this was very helpful and very informative, it takes you step by step and explains what's actually going on and why its happening. Thank you!

    Posted February 20, 2020
  • Brilliant. You explain things really clearly. Many thanks.

    Mark Gales
    Posted February 20, 2020
  • Legend! I've been trying to get Composer installed for over a day now and had all sorts of problems.
    Thank you!! 🙂

    Don Macarthur
    Posted February 20, 2020
  • can someone explain me wtf exactly this POS composer do ffs.. and do you need root access to install this POS? I got a rent managed server just like 99% of other people

    Alibaba Jackson
    Posted February 20, 2020
  • I am getting this error on my mac. What should I do?

    Warning: copy(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in Command line code on line 1

    Warning: copy(): Failed to enable crypto in Command line code on line 1

    Warning: copy( failed to open stream: operation failed in Command line code on line 1

    Md. Habibur Rahman
    Posted February 20, 2020

Leave a comment