PHP code example of unikent / lib-php-kar

1. Go to this page and download the library: Download unikent/lib-php-kar 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/ */

    

unikent / lib-php-kar example snippets


$api = new \unikent\KAR\API('https://kar-test.kent.ac.uk');
$documents = $api->search_author("[email protected]");
foreach ($documents as $document) {
    echo "---------------------------------\n";
    echo $document;
}