Open Access News

News from the open access movement


Friday, December 05, 2008

PHP implementation of SWORD

Stuart Lewis, SWORD PHP library, Stuart Lewis’ Blog, November 30, 2008.

As part of the JISC funded SWORD2 project, I have now written a PHP library for SWORD which is now available for download ...

There are many web applications that could deposit into repositories using SWORD, and many of these are written in PHP. Examples might include open source Content Management Systems, Blogs or Wikis. By using this library you can easily retrieve service documents and make deposits by using the API provided. There are two simple method calls (one to retrieve a service document and one to deposit a file). In addition there is a packager included that can package a file and metadata together into a package format supported by both DSpace and EPrints. This is the same code which is used to power the Facebook SWORD deposit tool.

The code is currently an early release - version 0.4. It has now been tested again DSpace, EPrints, Fedora and Intralibrary. This means that the Facebook application will now successfully deposit to all four of these ...