psychology-tools/pubmed-cite
Composer 安装命令:
composer require psychology-tools/pubmed-cite
包简介
A library for formatting and fetching citations to pubmed articles from the eFetch API.
关键字:
README 文档
README
A library for formatting and fetching citations to pubmed articles from the eFetch API.
Examples
Batch Requests
If you have to perform several lookups, you should queue and batch request them for performance reasons.
require_once('vendor/autoload.php');
use PsychologyTools\PubmedCite\PubmedCite;
$pubmed = new PubmedCite();
$p->queue('11111'); // queue single pmid as string
$p->queue(12345); // or as an int
$p->queue( ['43234',42234] ); // or either as an array
$p->queue( '344334,22424,444444'); // or as a comma separated string
$p->queue( '424245 X 455534 X 4534343' ); // or any kind of separated string
$citations = $pubmed->fetch_queued(); // returns an array of citation data objects indexed by pmid
var_dump($citations);
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-01