title: Installing PHP Github project on localhost using composer
body: <p>I downloaded the <a href="https://github.com/DaveChild/Text-Statistics" rel="nofollow noreferrer">Text-Statistics</a> ZIP master from Github and extracted and renamed the folder to stats on <code>/Library/WebServer/Documents/stats</code>. Then I used <code>cd /Library/WebServer/Documents/stats</code> and <code>composer update</code> and all dependencies built on <code>/Library/WebServer/Documents/stats</code> as well. When I go to <code>http://localhost/stats/</code> in my browser, it shows as follows:
  <p>
  <img src="https://i.stack.imgur.com/F0otu.png" alt="composer, php, github project installation"></p>
  
  <p><p> This is my first time to install a project on my localhost directory which uses composer. Shall I create an <code>index.php</code> to see how the codes work? Below you can also see the <code>composer.json</code> file:</p>
  
  <pre><code>{
      "name": "textstatistics",
      "description": "PHP package to measure the readability of text according to various algorithms.",
      "require": {
          "php": "&gt;=5.3.0"
      },
      "require-dev": {
          "phpunit/phpunit": "4.2.*"
      },
      "autoload": {
          "psr-0" : {
              "DaveChild\\TextStatistics" : "src"
          }
      },
      "extra": {
          "branch-alias": {
              "dev-master": "1.0.x-dev"
          }
      },
      "suggest": {
          "ext-bcmath": "More accurate floating point calculations.",
          "ext-mbstring": "Handle multi-byte text properly."
      }
  }
  </code></pre>