Custom PHP library to display a bibliography