title: How to cURL to PHP Curl PayQuicker
body: <p>How can I transfer this cURL into php? It's not returning anything
  Trying all the ways and not working. Do you know a library for codeigniter that not requires composer?</p>
  <pre><code> curl --location --request POST 'https://identity.mypayquicker.build/core/connect/token' \\\
      --header 'Authorization: Basic {token}' 
      --data-urlencode 'grant_type=client_credentials' \
      --data-urlencode 'scope=modify'
      --data-urlencode 'scope=readonly'&quot;,
            &quot;language&quot;: &quot;curl&quot;,
            &quot;name&quot;: &quot;  &quot;
  </code></pre>
  <p>Doing this way</p>
  <pre><code>$header = array();
      $header[] = 'Content-length: 0';
      $header[] = 'Content-type: application/json';
      $header[] = 'Authorization: Basic {token}';
  $ch = curl_init();
  
  curl_setopt($ch, CURLOPT_URL, &quot;https://identity.mypayquicker.com/core/connect/token&quot;);
  curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
  curl_setopt($ch, CURLOPT_POST, TRUE);
  
  
  // This option is set to TRUE so that the response
  // doesnot get printed and is stored directly in
  // the variable
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
  
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  
  curl_setopt($ch, CURLOPT_POSTFIELDS, array(
  'grant_type' =&gt; 'client_credentials'
  ));
  
  $data = curl_exec($ch);
  
  var_dump($data);
  </code></pre>
  <p>Not Returning Anything</p>