1. Go to this page and download the library: Download jorarmarfin/laravel-dspace 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/ */
return[
/*
|--------------------------------------------------------------------------
| url enlace del repositorio
|--------------------------------------------------------------------------
|
| Enlace de conexion al repositorio Dspace que desea cosechar
|
*/
'url' => env('DSPACE_URL', 'https://infohub.practicalaction.org/'),
];
use LaravelDspace;
public function index()
{
$data = LaravelDspace::getData(['verb'=>'ListRecords','set'=>'com_11283_320273','metadataPrefix'=>'etdms'])
$data1 = LaravelDspace::Harvest(['set'=>'com_11283_320273']);
return $data;
}