Download the PHP package proximify/h-index-reader without Composer

On this page you can find all versions of the php package proximify/h-index-reader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package h-index-reader

h-index-reader

h-index-reader is a module that allows you to retrieve author's h-index information from different sources including Google Scholar.

What is h-index?

According to Wikipedia, "The h-index is an author-level metric that measures both the productivity and citation impact of the publications of a scientist or scholar. The h-index correlates with obvious success indicators such as winning the Nobel Prize, being accepted for research fellowships and holding positions at top universities."

Problem

Accessing h-index information of an author programmatically is not convenient since there is no API to fetch that information from scholarly databases such as Google Scholar and SCOPUS. There have been some attempts to overcome this problem by scraping author's web profiles (e.g. Google Scholar profile). However, this is not always a guaranteed way getting indicies (e.g. h-index, h-index5y, i-10index etc.) since Google and other providers block the access of web crawlers.

Solution

h-index-reader provides a reliable way of accessing h-index information of an author by using multiple different information sources and libraries.

Getting Started

h-index-reader both offers an API and a CLI to fetch indices of author(s).

Requirements

h-index-reader requires both Python 3 or later and pip3 in your system.

Installation

You can both use composer require and composer create-project to install h-index-reader, but the requirements are different for the first option.

h-index-reader creates an isolated environment for its Python packages so it doesn't mess up with the other packages in your system. When you create a project with following option, the scripts creates an isolated virtual environment automatically:

    composer require proximify/h-index-reader

However, if you add h-index-reader as a requirement for your project (i.e. using composer require), you have to create the virtual environment manually inside of the package, activate it and then install all the required Python packages:

python3 -m venv src/python3/_scholarly
pip3 install scholarly
deactivate

API

h-index-reader provides an API to provide indices of an author from different sources. The reader uses Google Scholar by default as the data source.

    $hindexReader = new HIndexReader();

The h-index of authors can be fetched by providing name and/or affiliation of a person as well as Google Scholar profile URL. Name field is mandatory, however affiliation and profile URL are optional.

$people = [
    [
        'name' => 'Diego Macrini',
        'affiliation' => 'Research Fellow, Proximify',
        'profile_url' => 'https://scholar.google.com/citations?user=avUYKIgAAAAJ'
    ],
    [
        'name' => 'Sven Dickinson',
        'affiliation' => 'University of Toronto'
    ]
];

$result = $hindexReader->queryHIndex($people);

Output:

[
  {
    "id": "avUYKIgAAAAJ",
    "name": "Diego Macrini",
    "affiliation": "Research Fellow, Proximify",
    "hindex": 11,
    "hindex5y": 9,
    "i10index": 12,
    "i10index5y": 9
  },
  {
    "id": "6TGwETYAAAAJ",
    "name": "Sven Dickinson",
    "affiliation": "Professor of Computer Science, University of Toronto",
    "hindex": 43,
    "hindex5y": 23,
    "i10index": 91,
    "i10index5y": 44
  }
]

Settings

h-index-reader provides a settings file where you can configure advanced options. Here's the list settings supported in the current version:

Setting Description
people List of people to fetch h-indices. A sample can be found here.

Testing

h-index-reader both offers a CLI and a web interface for testing.

CLI:

composer query-h-index

You can also use the web interface for testing under the dev folder:

cd h-index-reader/dev/www && php -S localhost:8000

Note: Please set the correct path for the autoloader.php under the dev/www/api/index.php. Otherwise, the test script will fail.

Future Work

We are planning to add more sources (Scopus, WebofScience) to fetch h-indices in the near future.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to and actually do, grant us the rights to use your contribution. For details, visit our Contributor License Agreement.

When you submit a pull request, we will determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided. You will only need to do this once across all repos using our CLA.

This project has adopted the Proximify Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

License

Copyright (c) Proximify Inc. All rights reserved.

Licensed under the MIT license.

h-index-reader is made by Proximify. We invite the community to participate.


All versions of h-index-reader with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
proximify/foreign-packages Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package proximify/h-index-reader contains the following files

Loading the files please wait ....