Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
/ RefLib Public archive

PHP module to manage a variety of citation reference libraries

License

Notifications You must be signed in to change notification settings

hash-bang/RefLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RefLib

NOTICE: This module is depreciated in favour of the newer RefLib NPM. Please use that project instead.

PHP module for managing a variety of citation reference libraries.

At present this library can read/write the following citation library formats:

Installation

The easiest way to install is via Composer - composer require hashbang/reflib

If you wish to install without composer then download the source code, unzip it into a directory include the file in the normal way.

Examples

Read in EndNote XML

require('reflib.php');
$lib = new RefLib();
$lib->SetContentsFile('tests/data/endnote.xml');

print_r($lib->refs); // Outputs all processed refs in an associative array

Write EndNote XML

require('reflib.php');
$lib = new RefLib();
$lib->SetContentsFile('tests/data/endnote.xml'); // Read in content (or populate $lib->refs yourself)
$lib->GetContents('EndNote File.xml'); // Output file to the browser

File conversion

require('reflib.php');
$lib = new RefLib();
$lib->SetContentsFile('tests/data/endnote.xml'); // Read in content (or populate $lib->refs yourself)
$lib->GetContents('EndNote File.ris'); // Output file to the browser in RIS format

About

PHP module to manage a variety of citation reference libraries

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •