title: how does composer for binance API for PHP work?
body: <p>I try to get this done from github.
  <a href="https://github.com/binance-exchange/php-binance-api" rel="nofollow noreferrer">https://github.com/binance-exchange/php-binance-api</a></p>
  
  <p>I installed Xampp (latest version: 7.2.3) on a win 10 machine. Xampp is running. (at least not mysql, because it has an error while starting, but mysql is not needed).
  I downloaded the files from github and puttet them into my htdocs in a new folder called "binance".
  I downloaded the install-file for composer from here: <a href="https://getcomposer.org/doc/00-intro.md#installation-windows" rel="nofollow noreferrer">https://getcomposer.org/doc/00-intro.md#installation-windows</a>
  Installed it and choosed the php.exe out of my xampp folder inside the installation-process.</p>
  
  <p>Composer starts out of the console, and it works.
  I put this command into the cmd:</p>
  
  <pre><code>php composer.phar require "jaggedsoft/php-binance-api @dev"
  </code></pre>
  
  <p>It installs some folders and files, but not into my project-directory. It downloads and installs it into "user/vendor/..." on my drive c.</p>
  
  <p>Inside of the files downloaded from github, there is a file called:
  php-binance-api-test.php</p>
  
  <p>Inside this file, there are different lines like:</p>
  
  <pre><code>require 'vendor/autoload.php';
  file_put_contents( getenv("HOME") . "/.config/jaggedsoft/php-binance-api.json" ,
  </code></pre>
  
  <p>I copied the whole vendor directory into my project directory, so he can find his files.
  But he is not able to find ".config/jaggedsoft/" because there is no folder named .config. 
  There is also no file named php-binance-api.json only one called php-binance-api.php</p>
  
  <p>If I try to access some of the sample file, like web_socket_chart.php in examples,  he gives me an fatal error:</p>
  
  <pre><code>Fatal error: Uncaught Error: Class 'React\EventLoop\Factory' not found in
  </code></pre>
  
  <p>...</p>
  
  <p>this might be a file inside of the php-folder of xampp, but how does he load it before to get the class nedded?</p>
  
  <p>I think i messed up the installation of composer? or do I have to choose other place for the project inside of xampp?</p>
  
  <p>What is composer even good for? I would be really thankful, if someone may try to get this run an tell me, what I have done wrong.</p>