1. Go to this page and download the library: Download seboettg/citeproc-php 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/ */
seboettg / citeproc-php example snippets
eboettg\CiteProc\StyleSheet;
use Seboettg\CiteProc\CiteProc;
$data = file_get_contents("metadata.json");
$style = StyleSheet::loadStyleSheet("din-1505-2");
$citeProc = new CiteProc($style);
echo $citeProc->render(json_decode($data), "bibliography");
namespace Seboettg\CiteProc;
use PHPUnit\Framework\TestCase;
class MyNewClassTest extends TestCase
{
use TestSuiteTestCaseTrait;
// ...
public function testMyBrandNewFunction()
{
//my brand new function is the file name (without file extension)
$this->_testRenderTestSuite("myBrandNewFunction");
}
// ...
}