PHP code example of dsv-su / daisy-api-client-php

1. Go to this page and download the library: Download dsv-su/daisy-api-client-php 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/ */

    

dsv-su / daisy-api-client-php example snippets



use DsvSu\Daisy;

$employees = Daisy\Employee::find(['department' => 4]);
foreach ($employees as $e) {
    $p = $e->getPerson();
    echo $p->getFirstName() . ' ' . $p->getLastName() . "\n";
}

Daisy\Client::initUsingConfigFile(dirname(__FILE__) . '/daisy_api.json');