API Wrapper to fetch PubMed article(s) with id(s) or by author name(s)
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
API wrapper helps you to fetch PubMed articles with following features:
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