title: Convert cURL request to Guzzle in Laravel
body: <p>I have a curl request like the following in Codeigniter :</p>
  
  <pre><code>$order = [
    'index' =&gt; 'Value',
    'index2' =&gt; 'Value2'
  ];
  
  $this-&gt;curl-&gt;create($this-&gt;base_url.'order/');
  $this-&gt;curl-&gt;http_login($creds['username'], $creds['password']);
  $this-&gt;curl-&gt;ssl(TRUE, 2, 'certificates/certificate.pem');
  $this-&gt;curl-&gt;option(CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'Accept: application/json'));
  $this-&gt;curl-&gt;option(CURLOPT_FAILONERROR, FALSE);
  
  $this-&gt;curl-&gt;post(json_encode($order));
  $data   = $this-&gt;curl-&gt;execute();
  </code></pre>
  
  <p>Now I need to issue same request in Laravel, where I am using Guzzle. How can I convert this to a Guzzle request  ?</p>