titugeorge/

pubmed

API包装器,用于通过ID或作者名称获取PubMed文章

v1.0.0 2017-01-03 09:22 UTC

This package is not auto-updated.

Last update: 2024-09-28 20:03:45 UTC


README

API包装器帮助您获取PubMed文章,具有以下功能

  • 通过名称获取PubMed文章
  • 通过ID获取PubMed文章

通过名称获取PubMed文章的使用方法和示例代码!👍

$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)
*/

通过ID获取PubMed文章的使用方法和示例代码!👍

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

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

应用配置

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

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

请随时联系我 titugeorge@gmail.com

查看我的在线 作品集

参考文献

  • NCBI 国家生物技术信息中心