title: Get Number of Open issues from GitHub using GitHub API
body: <p>I am developing a php application where user input a link to any public GitHub repository and output will be </p>
  
  <p>(i) Total number of open issues </p>
  
  <p>(ii) Number of open issues that were opened in the last 24 hours</p>
  
  <p>(iii) Number of open issues that were opened more than 24 hours ago but less than 7 days ago   </p>
  
  <p>(iv) Number of open issues that were opened more than 7 days ago</p>
  
  <p>Code for printing the <strong>(i) Total number of open issues</strong> is given below using the github api and php curl and it is working fine.<br>
  But I have no idea how to print the other above three points <strong>(ii),(iii) and (iv)</strong>.<br>
  Any help regarding this will be appreciated. Thanks in advance.</p>
  
  <pre><code>&lt;?php
  //Test url
  $url = "https://api.github.com/repos/anandkgpt03/test";
  //Initiate curl
  $ch = curl_init();
  //Set the url
  curl_setopt($ch, CURLOPT_URL,$url);
  //Set the User Agent as username
  curl_setopt($ch, CURLOPT_USERAGENT, "anandkgpt03");
  //Accept the response as json
  curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Accept: application/json'));
  //Will return the response, if false it print the response
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  // Execute
  $result=curl_exec($ch);
  // Closing
  curl_close($ch);
  
  //Decode the json in associative array
  $new_result=json_decode($result,true);
  
  echo "Total Number of Open Issues:".$new_result["open_issues_count"];
  ?&gt;
  </code></pre>