PHP code example of jorarmarfin / laravel-dspace

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/ */

    

jorarmarfin / laravel-dspace example snippets


'providers' => [
    //...
    JorarMarfin\LaravelDspace\LaravelDspaceServiceProvider::class,
]



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;
}
bash
php artisan vendor:publish --provider="JorarMarfin\LaravelDspace\LaravelDspaceServiceProvider"
bash
php artisan migrate
bash
dspace:harvest --set=com_11283_320273 --form=2020-02-02 --until=2020-02-02