title: {WAMP SERVER} Fatal error: Class 'HttpRequest' not found in C:\wamp\www\project_name\file.php
body: <p>I am using Wampserver 2.5 on windows 10 for my PHP project and my PHP version is 5.5.12
  I am trying to use SMS sending API, code is:</p>
  
  <pre><code>&lt;?php
  
      $request = new HttpRequest();
      $request-&gt;setUrl('http://api.jaldise.net/restapi/sms/1/text/single');
      $request-&gt;setMethod(HTTP_METH_POST);
  
      $request-&gt;setHeaders(array(
      'accept' =&gt; 'application/json',
      'content-type' =&gt; 'application/json',
      'authorization' =&gt; 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='
      ));
  
      $request-&gt;setBody('{  
      "from":"JaldiSe",
      "to":[  
      "923420563069",
      "41793026834"
      ],
      "text":"Test SMS."
    }');
  
    try {
    $response = $request-&gt;send();
  
    echo $response-&gt;getBody();
  } catch (HttpException $ex) {
  echo $ex;
  }
  </code></pre>
  
  <p>when I run this file in browser the following error shows up this error message:
  <a href="https://i.stack.imgur.com/UfcGQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UfcGQ.png" alt="enter image description here"></a></p>
  
  <p>I added the http.dll file and extension in php.ini but to no avail.</p>