2017 © Pedro Peláez
 

library pubmed

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

image

tmpjr/pubmed

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

  • Tuesday, November 21, 2017
  • by tmpjr
  • Repository
  • 3 Watchers
  • 9 Stars
  • 1,040 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 11 Forks
  • 1 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

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)

  1. Add tmpjr/pubmed as a dependency in your project's composer.json file:, (*2)

    {
        "require": {
            "tmpjr/pubmed": "dev-master"
        }
    }
  2. Download and install Composer:, (*3)

    curl -s http://getcomposer.org/installer | php
  3. Install your dependencies:, (*4)

    php composer.phar install
  4. Require Composer's autoloader, (*5)

    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:, (*6)

    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., (*7)

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:, (*8)

http://rem.mit-license.org, (*9)

The Versions

21/11 2017

dev-master

9999999-dev https://github.com/tmpjr/pubmed

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api wrapper ncbi pubmed