title: How can I write a sample console application with Zend?
body: <p>How can I write a sample console application with Zend?</p>
  
  <pre><code>/Zend/Console/Getopt.php
  </code></pre>
  
  <p>I just want to pass a value as <code>-v</code> and will get the version information.</p>
  
  <p>Input as </p>
  
  <pre><code>prjectfolder/console/version.php -v
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>Version 1.xxxxx
  </code></pre>
  
  <p>How can I code this in Zend with simple PHP with send lib includes methods.</p>