LaravelPackages.net
Acme Inc.
Toggle sidebar
titugeorge/pubmed

API Wrapper to fetch PubMed article(s) with id(s) or by author name(s)

46
3
v1.0.0
About titugeorge/pubmed

titugeorge/pubmed is a Laravel package for api wrapper to fetch pubmed article(s) with id(s) or by author name(s). It currently has 3 GitHub stars and 46 downloads on Packagist (latest version v1.0.0). Install it with composer require titugeorge/pubmed. Discover more Laravel packages by titugeorge or browse all Laravel packages to compare alternatives.

Last updated

PubMed API Wrapper

API wrapper helps you to fetch PubMed articles with following features:

  • Get PubMed article(s) with name(s)
  • Get PubMed article(s) with id(s)

Usage and sample code to get PubMed article(s) by Name(s)! :+1:


$name  = "chris";
$count = 5;

print_r( PubMed::getPubMedArticleByName( $name, $count ) );

/*
Parameters:
$name ( Mandatory ), can accommodate multiple names combination with comma separated string like ( "Chris, John" )

$count ( NonMandatory and default count will be 10, This represent how many records need to be retrieved)
*/

Usage and sample code to get PubMed article(s) by Id(s)! :+1:


// Multiple id(s) can be passed to the api wrapper
$id = array('28030999', '28023346');

print_r( PubMed::getPubMedArticleByIds($id) );

App Config:


 'providers' => [
        TituGeorge\PubMed\PubmedServiceProvider::class,
    ],

 'aliases'  => [
        'PubMed' => TituGeorge\PubMed\Facade\Pubmed::class,
	],

Please feel free to contact me [email protected]

Checkout my online Portfolio

Reference:

  • NCBI National Center for Biotechnology Information
Comments