title: Composer Install Error: ZipArchive::extractTo(): Full extraction path exceed MAXPATHLEN (260)
body: <p>When I run:</p>
  
  <pre><code>php composer.phar require kartik-v/yii2-widgets "*"
  </code></pre>
  
  <p>I get the following output (using the -vvv verbose flag):</p>
  
  <pre><code>  - Installing kartik-v/bootstrap-fileinput (v4.1.7)
  Downloading https://api.github.com/repos/kartik-v/bootstrap-fileinput/zipball/f95a7e5fa0a9db1ead445e438653aa71e9f599f9
      Downloading: connection...
      Downloading: 0%
      Downloading: 5%
      ...
      Downloading: 95%
      Downloading: 100%
      Downloading: 100%
  Writing C:/Users/Michael/AppData/Local/Composer/files/kartik-v/bootstrap-fileinput/f95a7e5fa0a9db1ead445e438653aa71e9f599f9.zip into cache
      Extracting archive
  
    [ErrorException]
    ZipArchive::extractTo(): Full extraction path exceed MAXPATHLEN (260)
  
  Exception trace:
   () at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Downloader/ZipDownloader.php:79
   Composer\Util\ErrorHandler::handle() at n/a:n/a
   ZipArchive-&gt;extractTo() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Downloader/ZipDownloader.php:79
   Composer\Downloader\ZipDownloader-&gt;extract() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Downloader/ArchiveDownloader.php:44
   Composer\Downloader\ArchiveDownloader-&gt;download() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Downloader/DownloadManager.php:201
   Composer\Downloader\DownloadManager-&gt;download() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installer/LibraryInstaller.php:156
   Composer\Installer\LibraryInstaller-&gt;installCode() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installer/LibraryInstaller.php:87
   Composer\Installer\LibraryInstaller-&gt;install() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installer/InstallationManager.php:152
   Composer\Installer\InstallationManager-&gt;install() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installer/InstallationManager.php:139
   Composer\Installer\InstallationManager-&gt;execute() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installer.php:578
   Composer\Installer-&gt;doInstall() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installer.php:225
   Composer\Installer-&gt;run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Command/RequireCommand.php:154
   Composer\Command\RequireCommand-&gt;execute() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:253
   Symfony\Component\Console\Command\Command-&gt;run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:874
   Symfony\Component\Console\Application-&gt;doRunCommand() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:195
   Symfony\Component\Console\Application-&gt;doRun() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Console/Application.php:147
   Composer\Console\Application-&gt;doRun() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:126
   Symfony\Component\Console\Application-&gt;run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Console/Application.php:84
   Composer\Console\Application-&gt;run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/bin/composer:43
   require() at C:\ProgramData\ComposerSetup\bin\composer.phar:25
  
  
  require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [packages1] ... [packagesN]
  </code></pre>
  
  <p>I even tried using the flag "--prefer-source" but I get the same error.  Is there a way to tell composer to increase the MAXPATHLEN?  Which path exactly is it complaining about?</p>