1. Go to this page and download the library: Download scriptotek/oai-pmh-client 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/ */
scriptotek / oai-pmh-client example snippets
use Scriptotek\OaiPmh\Client as OaiPmhClient;
$url = 'http://oai.bibsys.no/repository';
$client = new OaiPmhClient($url, array(
'schema' => 'marcxchange',
'user-agent' => 'MyTool/0.1',
'max-retries' => 10,
'sleep-time-on-error' => 30,
));