定制 tmpjr/pubmed 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

tmpjr/pubmed

Composer 安装命令:

composer require tmpjr/pubmed

包简介

Wrapper API for the NCBI PubMed EFetch Utilities developed at Ambry Genetics and made public for use by the community.

README 文档

README

API wrapper library to interface with NCBI's PubMed Efetch Server

Getting started

Installing via Composer

The recommended way to install PubMed is through Composer.

  1. Add tmpjr/pubmed as a dependency in your project's composer.json file:

     {
         "require": {
             "tmpjr/pubmed": "dev-master"
         }
     }
    
  2. Download and install Composer:

     curl -s http://getcomposer.org/installer | php
    
  3. Install your dependencies:

     php composer.phar install
    
  4. Require Composer's autoloader

    Composer also prepares an autoload file that's capable of autoloading all of the classes in any of the libraries that it downloads. To use it, just add the following line to your code's bootstrap process:

     require 'vendor/autoload.php';
    

You can find out more on how to install Composer, configure autoloading, and other best-practices for defining dependencies at getcomposer.org.

Basic Usage

<?php

require 'vendor/autoload.php';

// Search By PMID
$api = new PubMed\PubMedId();
$article = $api->query(15221447);
print_r($article);

// Search By Term
$api = new PubMed\Term();
$api->setReturnMax(100); // set max returned articles, defaults to 10
$articles = $api->query('CFTR');
print_r($articles);

License

Licensed under the open MIT license:

http://rem.mit-license.org

统计信息

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

GitHub 信息

  • Stars: 12
  • Watchers: 3
  • Forks: 12
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-05-02