title: How to convert getopt-based cli php script to a web ($_GET) one?
body: <p>So I have this getopt-based cli php script and this getopt function in it:</p>
  
  <pre><code>function get_cli_params() {
  $params = getopt( 'g', array( 'xpub:', 'xpubfile:',
                                'outfile:',
                                'derivation:',
                                'numsig:',
                                'format:', 'cols:',
                                'gap-limit:',
                                'logfile:', 'loglevel:',
                                'toshi:',
                                'blockchaindotinfo:',
                                'btcd:',
                                'btcdotcom:',
                                'blockcypher:',
                                'insight:',
                                'api:',.
                                'list-cols',
                                'oracle-raw:', 'oracle-json:',
                                'include-unused',
                                'gen-only:', 'type:',
                                'batch-size:',
                                'version', 'help',
                                ) );
  
  return $params;}
  </code></pre>
  
  <p>It works well this way from console: </p>
  
  <pre><code>$ ./hd-wallet-addrs.php -g --xpub=xpub6BfKpqjTwvH21wJGWEfxLppb8sU7C6FJge2kWb9315oP4ZVqCXG29cdUtkyu7YQhHyfA5nt63nzcNZHY
  </code></pre>
  
  <p>How can I convert this script to a web one? I want to open it online and pass arguments to it via $_GET. Thank you.</p>
  
  <p>PS: Script page: <a href="https://github.com/dan-da/hd-wallet-addrs" rel="nofollow noreferrer">https://github.com/dan-da/hd-wallet-addrs</a></p>