1. Go to this page and download the library: Download dagstuhl/datacite 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/ */
dagstuhl / datacite example snippets
$dataCiteRecord = new DataCiteRecord();
$dataCiteRecord->setDoi('10.publisher.example-doi');
$dataCiteRecord->addTitle(Title::main('This is an example title', 'en'));
$creator = Creator::personal('Concatenated Names', 'Given Name', 'Family Name');
$creator->addAffiliation(new Affiliation('This is a sample affiliation'));
$dataCiteRecord->addCreator($creator);
class MyModelDataProvider implements \Dagstuhl\DataCite\DataCiteDataProvider {
// ... see the interface for details ...
}
$dataProvider = new MyModelDataProvider($myModel);
$dataCiteRecord = DataCiteRecord::fromDataProvider($dataProvider);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.