title: running Cassandra from php shell command (using datastax php-driver)
body: <p>I am able to run it through the browser but not from command line </p>
  
  <p>ie php test.php</p>
  
  <pre><code>$raw = Cassandra::cluster()
                -&gt;withContactPoints('localhost')
                //-&gt;withCredentials($this-&gt;username, $this-&gt;password)
                -&gt;build();
   var_dump($raw);                       
  
  die;
  </code></pre>
  
  <p>from browser: </p>
  
  <blockquote>
    <p>object(Cassandra\DefaultCluster)#2 (0) { } </p>
  </blockquote>
  
  <p>command line: </p>
  
  <blockquote>
    <p>PHP Fatal error:  Class 'Cassandra' not found in /var/www/html/test.php on line 2</p>
  </blockquote>
  
  <p>Is it possible to get same from command line as well?</p>