dev-master
9999999-dev https://github.com/tmpjr/pubmedWrapper API for the NCBI PubMed EFetch Utilities developed at Ambry Genetics and made public for use by the community.
MIT
The Requires
- php >=5.3.0
api wrapper ncbi pubmed
Wrapper API for the NCBI PubMed EFetch Utilities developed at Ambry Genetics and made public for use by the community.
The recommended way to install PubMed is through Composer., (*1)
Add tmpjr/pubmed
as a dependency in your project's composer.json
file:, (*2)
{ "require": { "tmpjr/pubmed": "dev-master" } }
Download and install Composer:, (*3)
curl -s http://getcomposer.org/installer | php
Install your dependencies:, (*4)
php composer.phar install
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)
<?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);
Licensed under the open MIT license:, (*8)
http://rem.mit-license.org, (*9)
Wrapper API for the NCBI PubMed EFetch Utilities developed at Ambry Genetics and made public for use by the community.
MIT
api wrapper ncbi pubmed