News Archive
PhpRiot Newsletter
Your Email Address:

More information

File_MARC 0.6.0 - now offering two tasty flavours of MARC-as-JSON output

Note: This article was originally published at Planet PHP on 15 August 2010.
Planet PHP

I've just released the PHP PEAR library File_MARC 0.6.0. This release brings two JSON serialization output methods for MARC to the table:

The JSON formats should be useful for developers who don't want to have to deal with the overhead and sluggishness of a MARC parsing library (yes, File_MARC, I'm looking at you) just to deal with MARC data. Both formats are round-trippable and compact, which is why I chose to support them.

The use of the json_encode() function bumps the minimum PHP version requirement for File_MARC up to 5.2.x from 5.1.x, which kind of sucks, but given that PHP 5.2.0 was released in 2006, I think it's worth it.

You can install File_MARC using the 'pear' command on most environments as follows:

pear install File_MARC-beta