承接 researchgate/libris 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

researchgate/libris

最新稳定版本:2.4.1

Composer 安装命令:

composer require researchgate/libris

包简介

An RIS parser. RIS is a format for reference metadata. A fork of technosophos/LibRIS.

README 文档

README

  • Author: Matt Butcher matt@aleph-null.tv, 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

Installation

composer require researchgate/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):

<?php
require_once 'LibRIS/RISReader.php';
require_once 'LibRIS/RISWriter.php';

$ris = new \LibRIS\RISReader();
$ris->parseFile('./test1.ris');

$ris->printRecords();

$records = $ris->getRecords();

$rw = new \LibRIS\RISWriter();
print $rw->writeRecords($records);
?>

Here's a line-by-line explanation of the code above:

1. Include the libraries.
2. You don't need this if you use an autoloader.
3. 
4. Create a new LibRIS reader
5. Parse a file
6. 
7. Pretty-print the parsed records
8. 
9. Create a new writer
10. Turn our parsed record back into a valid RIS record.

The format of the records is documented in doc/RecordFormat.mdown.

I Found a Bug!

If you found a bug, please let me know. The best way is to file a report at http://github.com/technosophos/LibRIS/issues.

You can also find me on Freenode's IRC in #querypath.

Why is there a README file and a README.mdown file?

  • README is a required file for the Pear packaging system.
  • README.mdown is the GitHub-friendly README file for this project.

统计信息

  • 总下载量: 21.29k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: (MIT or GPL-2.0-only) b8236b0ee240fadfb0fee6d3be81c4504db193ac
  • 更新时间: 2023-11-02