technosophos/libris
最新稳定版本:2.0.2
Composer 安装命令:
composer require technosophos/libris
包简介
An RIS parser. RIS is a format for reference metadata.
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
Method 1: Install using Packagist.
- Follow the instructions at http://packagist.org
- In your new project, create a
composer.jsonfile 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:
<?php require 'vendor/.composer/autoload.php'; use \LibRIS\RISReader; $reader = new RISReader(); //... ?>
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.
Use it in your scripts like this:
<?php
require 'LibRIS.php';
?>
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
- Get LibRIS from the downloads page
- Uncompress the files (
tar -zxvf LibRIS-1.0.0.tgz) - Put the files where you want them to go.
Use it in your scripts like this:
<?php
require 'path/to/LibRIS.php';
?>
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.
The Phing Script
This file includes a Phing build.xml script. However, it is rarely used.
If you are interested in using this as part of a build toolchain, see phing.info
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.
technosophos/libris 适用场景与选型建议
technosophos/libris 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 793.7k 次下载、GitHub Stars 达 18, 最近一次更新时间为 2026 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「RIS」 「File parser」 「Reference」 「Bibliography」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 technosophos/libris 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 technosophos/libris 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 technosophos/libris 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
An RIS parser. RIS is a format for reference metadata. A fork of technosophos/LibRIS.
Easy to use SDK with grabber for multiple platforms at once like YouTube, Dailymotion, Facebook and more.
The file manager intended for using Laravel with CKEditor / TinyMCE / Colorbox
A small library to convert different bibliography formats into each other. Forked from 'geissler/converter'.
An MT940 bank statement parser for PHP
RIS is a format for reference metadata
统计信息
- 总下载量: 793.7k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 18
- 点击次数: 25
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04