PHPackages                             technosophos/libris - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. technosophos/libris

AbandonedLibrary[Parsing &amp; Serialization](/categories/parsing)

technosophos/libris
===================

An RIS parser. RIS is a format for reference metadata.

2.0.2(14y ago)18827.9k—1.3%8[2 issues](https://github.com/technosophos/LibRIS/issues)[1 PRs](https://github.com/technosophos/LibRIS/pulls)1MIT or GPLv2PHPPHP &gt;=5.3.0

Since Feb 3Pushed 7y ago2 watchersCompare

[ Source](https://github.com/technosophos/LibRIS)[ Packagist](https://packagist.org/packages/technosophos/libris)[ Docs](https://github.com/technosophos/LibRIS)[ RSS](/packages/technosophos-libris/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (1)

LibRIS: An RIS parser for PHP
=============================

[](#libris-an-ris-parser-for-php)

- Author: Matt Butcher , 2010-02-06
- License: An MIT-like license (COPYING-MIT.txt)

This library provides basic marshaling and unmarshaling support for the RIS format.

RIS is used to encode metadata about references. The normative reference for the format can be found here:

[http://www.refman.com/support/risformat\_intro.asp](http://www.refman.com/support/risformat_intro.asp)

Installation
============

[](#installation)

**Method 1:** Install using Packagist.

1. Follow the instructions at
2. In your new project, create a `composer.json` file which requires LibRIS:

```
{
  "require": {
    "technosophos/LibRIS": ">=1.0.0"
  }
}
```

When you next run `php composer.phar install` it will automatically fetch and install LibRIS.

Note that as of LibRIS 2.0.0, the Composer autoloader can load LibRIS:

```

```

**Method 2:** Install LibRIS using Pear

Use your `pear` client to install LibRIS:

```
pear channel-discover pear.querypath.org
pear install querypath/LibRIS

```

For more, see [pear.querypath.org](http://pear.querypath.org).

Use it in your scripts like this:

```

```

If you have already installed LibRIS using Pear, you can upgrade your library to the latest stable release by doing `pear upgrade LibRIS`.

**Method 3:** Download LibRIS

1. Get LibRIS from [the downloads page](http://github.com/technosophos/LibRIS/downloads)
2. Uncompress the files (`tar -zxvf LibRIS-1.0.0.tgz`)
3. Put the files where you want them to go.

Use it in your scripts like this:

```

```

Using LibRIS
============

[](#using-libris)

General usage for this class is simple:

- The LibRIS class is used to parse RIS.
- The RISWriter class is used for writing RIS data into a string.

Here's an example (from test/simple\_test.php):

```
