title: How I can use a PHP code in C# desktop application
body: <p>Is there any way to run the PHP code on the c# app
  since I'm working on an application that requires to implement of this <a href="https://smm-bomb.com/" rel="nofollow noreferrer">site's</a> API
  but there is no documentation except for PHP, so is there any way I can use this piece of code in a c# application or convert this code in C# if that is possible.</p>
  <pre><code>public $api_url = 'https://smm-bomb.com/api/v2'; // API URL
  
  public $api_key = ''; // Your API key
  
  public function order($data) { // add order
      $post = array_merge(array('key' =&gt; $this-&gt;api_key, 'action' =&gt; 'add'), $data);
      return json_decode($this-&gt;connect($post));
  }
  </code></pre>