PHP code example of jdoyle / sifter

1. Go to this page and download the library: Download jdoyle/sifter library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jdoyle / sifter example snippets


$apiKey = '2345LIKUYGWE35246KUYG2EKG';
$apiSubdomain = 'example';

$sifter = new Sifter(new SifterCurl($apiKey, $apiSubdomain));

$projects = $sifter->allProjects();

foreach($projects as $project) {
  echo $project->getName();
  echo "<br>";
  echo $project->getPrimaryCompanyName();
  echo "<br>";
  echo "<h3>People</h3><br>";
  
  $people = $project->people();
  foreach($people as $person) {
    echo $person->getUsername() . " : " . $person->getFullName() . "<br>";
  }
}