Search code examples
composer-phpwindows-10drushdrupal-8

Drupal Drush master-branch in Windows 10 home requires composer - What and why?


After I installed Drush (master-branch for Drupal 8) at my Windows 10 home and set PATH EV with all it's needed values, I ran drush cc all... And then I got that error:

C:\wamp\www\benia>drush cc all Failed loading c:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.4.0rc1-7.0-vc14-x86_64.dll

Unable to load autoload.php.

Drush now requires Composer in order to install its dependencies and autoload classes. Please see README.md.

I am not yet a programmer, and have no idea why would Drush need the Composer software, and how to install it on Windows 10 home for using Drush. Can someone please write a detailed, stepped answer, for laymen like me, how to solve it?


Solution

  • Running the Windows installer for Composer should take care of everything you need. You can find it here. If you prefer to use the command line the Composer site also has instructions for that.

    Examples, Using cUrl:

    curl -sS https://getcomposer.org/installer | php
    

    Using PHP:

    php -r "readfile('https://getcomposer.org/installer');" | php