PHPackages                             hashbang/reflib - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. hashbang/reflib

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

hashbang/reflib
===============

PHP module for managing a variety of citation reference libraries

v1.1.10(10y ago)61327GPL-2.0PHPPHP &gt;=5.0.0

Since Apr 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/hash-bang/RefLib)[ Packagist](https://packagist.org/packages/hashbang/reflib)[ Docs](https://github.com/hash-bang/RefLib)[ RSS](/packages/hashbang-reflib/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)DependenciesVersions (13)Used By (0)

RefLib
======

[](#reflib)

**NOTICE: This module is depreciated in favour of the newer [RefLib NPM](https://github.com/hash-bang/Reflib-Node). 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:

- EndNote (XML)
- [RIS](https://en.wikipedia.org/wiki/RIS_(file_format))
- CSV files
- [MEDLINE (PubMed .nbib)](https://www.nlm.nih.gov/bsd/disted/pubmedtutorial/030_080.html)

Installation
------------

[](#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
========

[](#examples)

Read in EndNote XML
-------------------

[](#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
-----------------

[](#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
---------------

[](#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

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 94.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~38 days

Recently: every ~30 days

Total

12

Last Release

3979d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8587289?v=4)[hashbang](/maintainers/hashbang)[@hashbang](https://github.com/hashbang)

---

Top Contributors

[![hash-bang](https://avatars.githubusercontent.com/u/624527?v=4)](https://github.com/hash-bang "hash-bang (68 commits)")[![jeromecaffaro](https://avatars.githubusercontent.com/u/1829647?v=4)](https://github.com/jeromecaffaro "jeromecaffaro (3 commits)")[![DanielBaird](https://avatars.githubusercontent.com/u/25352?v=4)](https://github.com/DanielBaird "DanielBaird (1 commits)")

---

Tags

libraryreferencesRISendnotecitations

### Embed Badge

![Health badge](/badges/hashbang-reflib/health.svg)

```
[![Health](https://phpackages.com/badges/hashbang-reflib/health.svg)](https://phpackages.com/packages/hashbang-reflib)
```

###  Alternatives

[league/iso3166

ISO 3166-1 PHP Library

69536.3M116](/packages/league-iso3166)[league/statsd

A simple library for working with StatsD in PHP.

3514.3M12](/packages/league-statsd)[payum/iso4217

ISO 4217 PHP Library

16312.1M5](/packages/payum-iso4217)[lambdish/phunctional

λ PHP functional library

3612.0M23](/packages/lambdish-phunctional)[dekor/php-array-table

PHP Library for printing associative arrays as text table (similar to mysql terminal console)

296.6M2](/packages/dekor-php-array-table)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
