PHPackages                             bborrel/google-scholar-profile-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. bborrel/google-scholar-profile-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

bborrel/google-scholar-profile-parser
=====================================

Parses a profile page from Google Scholar.

3.0.1(1y ago)142.9k↑361.5%4[1 issues](https://github.com/bborrel/google-scholar-profile-parser/issues)GPL-3.0-onlyPHPPHP &gt;=8.1CI failing

Since Mar 5Pushed 1y ago2 watchersCompare

[ Source](https://github.com/bborrel/google-scholar-profile-parser)[ Packagist](https://packagist.org/packages/bborrel/google-scholar-profile-parser)[ RSS](/packages/bborrel-google-scholar-profile-parser/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (18)Versions (17)Used By (0)

Google Scholar Profile Parser
=============================

[](#google-scholar-profile-parser)

[![Latest Stable Version](https://camo.githubusercontent.com/52ff67edc82fc7148cb1ca66279370dcc807f6614c421340081648551ef63ec9/68747470733a2f2f706f7365722e707567782e6f72672f62626f7272656c2f676f6f676c652d7363686f6c61722d70726f66696c652d7061727365722f762f737461626c65)](https://packagist.org/packages/bborrel/google-scholar-profile-parser)[![Minimum PHP Version](https://camo.githubusercontent.com/58f386c117310f99d8d666aaa1fe940f553506303f5345ea9a19d205288513ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f62626f7272656c2f676f6f676c652d7363686f6c61722d70726f66696c652d7061727365722e7376673f6d61784167653d33363030)](https://packagist.org/packages/bborrel/google-scholar-profile-parser)[![Total Downloads](https://camo.githubusercontent.com/ec24edaa386ac3de35d0fe73af0afeff947c3b841ff1947640a4a1aace2644f0/68747470733a2f2f706f7365722e707567782e6f72672f62626f7272656c2f676f6f676c652d7363686f6c61722d70726f66696c652d7061727365722f646f776e6c6f616473)](https://packagist.org/packages/bborrel/google-scholar-profile-parser)[![License](https://camo.githubusercontent.com/465e426087e262217762fe479d29d3372a8803a43eac2311d8368ec6f53b00c0/68747470733a2f2f706f7365722e707567782e6f72672f62626f7272656c2f676f6f676c652d7363686f6c61722d70726f66696c652d7061727365722f6c6963656e7365)](https://packagist.org/packages/bborrel/google-scholar-profile-parser)

[![Tested on PHP 7.2 to 8.3](https://camo.githubusercontent.com/7399a90416db0df23bec289724b92db563972519a48a06b224cab19639cbb1d8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7465737465642532306f6e2d504850253230372e32253230253743253230372e33253230253743253230372e34253230253743253230382e30253230253743253230382e31253230253743253230382e32253230253743253230382e332d627269676874677265656e2e7376673f6d61784167653d32343139323030)](https://travis-ci.com/bborrel/google-scholar-profile-parser)[![Build Status](https://camo.githubusercontent.com/64c95729ee749c5a44ee5b61bdff5e8dad91565830553f6a1134eeaa91480ddd/68747470733a2f2f6170702e7472617669732d63692e636f6d2f62626f7272656c2f676f6f676c652d7363686f6c61722d70726f66696c652d7061727365722e7376673f746f6b656e3d475246576635514b6572395377343151546f3465266272616e63683d6d61696e)](https://app.travis-ci.com/bborrel/google-scholar-profile-parser)[![Coverage Status](https://camo.githubusercontent.com/3c7f39f67ebc91782a12a71f4d9a2f27ccbd0ae88b9095007e1ec5cb89adab3c/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f62626f7272656c2f676f6f676c652d7363686f6c61722d70726f66696c652d7061727365722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/bborrel/google-scholar-profile-parser?branch=master)[![Mutation testing badge](https://camo.githubusercontent.com/d936c9fedc0297045eee3dde72e792da85d49b038c493af177a559694c19b588/68747470733a2f2f62616467652e737472796b65722d6d757461746f722e696f2f6769746875622e636f6d2f62626f7272656c2f676f6f676c652d7363686f6c61722d70726f66696c652d7061727365722f6d6173746572)](https://stryker-mutator.github.io)[![Maintainability](https://camo.githubusercontent.com/1569c37e9ac6bfa6c59bee631756fc9a7d01de13a3cd6f4e10b8d6e33a9082ca/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61393961383864323861643337613739646266362f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/codeclimate/codeclimate/maintainability)

Google Scholar Profile Parser is a PHP library which parses the HTML of a scholar's profile page from Google Scholar website and transforms its data into a regular PHP data structure.

The parsed data from a scholar is:

- his/her list of publications (title, link, authors, publisher details, citations)
- his/her citations' statistics (number of citations, h-index, i10-index)

Table of content
----------------

[](#table-of-content)

- [Project Rationale](#project-rationale)
- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
- [Versioning](#versioning)
- [Code Quality](#code-quality)
- [Author](#author)
- [License](#license)

Project Rationale
-----------------

[](#project-rationale)

As explained by this [Wikipedia page](https://en.wikipedia.org/wiki/Google_Scholar):

> Google Scholar is a freely accessible web search engine that indexes the full text or metadata of scholarly literature across an array of publishing formats and disciplines.Google Scholar is a website which indexes scholars' publications and citations.

Unfortunately [Google Scholar](https://scholar.google.com/) website doesn't provide an API and I needed a way to fetch a scholar's data.

So, while I was looking for a PHP library which parses a profile page from Google Scholar website, I only found [Scholar parser](https://github.com/dschreij/scholar_parser) from [Daniel Schreij](https://github.com/dschreij). But I was unhappy with this library's dependency upon [PhantomJS](http://phantomjs.org/)which development is suspended (and will likely not resume, leaving users without support). So I decided to rewrite this library redesigning it to depend only on PHP, and no more Javascript.

Requirements
------------

[](#requirements)

Major versions vs. PHP:

- 3.x: PHP 8.1+
- 2.x: PHP 7.1+
- 1.x: PHP 5.6+

As stated in [composer.json](composer.json), it requires PHP extension DOM.

Installation
------------

[](#installation)

Use [Composer](https://getcomposer.org/) to download and install this library as well as its dependencies.

```
composer require bborrel/google-scholar-profile-parser
```

Usage
-----

[](#usage)

See the examples in the [library's documentation](doc).

Versioning
----------

[](#versioning)

This library use [SemVer](http://semver.org/) for versioning. For available versions, see the [tags on this repository](https://github.com/bborrel/google-scholar-profile-parser/tags). For feature changes, see the [CHANGELOG.md](CHANGELOG.md) file for details.

Code Quality
------------

[](#code-quality)

The code of this library:

- follows the [PSR-1](https://www.php-fig.org/psr/psr-1/) and [PSR-12](https://www.php-fig.org/psr/psr-12/) coding standards
- follows the [PSR-4](https://www.php-fig.org/psr/psr-4/) autoloading standard
- is statically analysed with [PHPQA](https://github.com/EdgedesignCZ/phpqa) (which wraps several tools, notably [PHPCS](https://github.com/squizlabs/PHP_CodeSniffer), [PHPMD](https://phpmd.org/), [PHPStan](https://github.com/phpstan/phpstan)and [Psalm](https://psalm.dev/)), and by Code Climate (which is setup with plugins [Phan](https://github.com/phan/phan), [PHPMD](https://phpmd.org/), [SonarPHP](https://www.sonarsource.com/products/codeanalyzers/sonarphp.html))
- is unit tested with [PHPUnit](https://phpunit.de/) (code coverage on [Coveralls](https://coveralls.io/github/bborrel/google-scholar-profile-parser?branch=master))
- is mutation tested with [Infection](https://github.com/infection/infection)
- is tested for compatibility with different versions of PHP (see [.travis.yml](.travis.yml) for details)
- has its dependencies checked for known security issues by [Packagist API](https://packagist.org/apidoc#list-security-advisories)
- is continuously integrated on [TravisCI](https://travis-ci.com/bborrel/google-scholar-profile-parser)

These tools are installed with the library as long as you do not specify the option `--no-dev` when running the `install` or `update` [Composer](https://getcomposer.org/) commands.

To run the static analysis tools and the unit tests via [PHPQA](https://github.com/EdgedesignCZ/phpqa):

```
./vendor/bin/phpqa
```

To see the reports generated by [PHPQA](https://github.com/EdgedesignCZ/phpqa) use a browser to open the file `./build/phpqa.html`.

Author
------

[](#author)

[Benoit Borrel](https://github.com/bborrel)

License
-------

[](#license)

This library is licensed under the GPL-3.0-only License, see the [LICENSE.md](LICENSE.md) file for details.

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance47

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~173 days

Recently: every ~510 days

Total

14

Last Release

377d ago

Major Versions

1.1.4 → 2.0.02019-09-11

2.2.0 → 3.0.02025-02-11

PHP version history (4 changes)1.0.0PHP &gt;=5.6.0

2.0.0PHP &gt;=7.1.0

2.2.0PHP &gt;=7.4

3.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d08b10da584007317372ffcda71f6ca4871aae239601286fb77bd402e77b7eb?d=identicon)[bborrel](/maintainers/bborrel)

---

Top Contributors

[![bborrel](https://avatars.githubusercontent.com/u/234378?v=4)](https://github.com/bborrel "bborrel (109 commits)")

---

Tags

google-scholarparserphppublicationsscholarstatistics

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/bborrel-google-scholar-profile-parser/health.svg)

```
[![Health](https://phpackages.com/badges/bborrel-google-scholar-profile-parser/health.svg)](https://phpackages.com/packages/bborrel-google-scholar-profile-parser)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[spekulatius/phpscraper

PHPScraper, built with simplicity in mind. See tests/ for more examples.

583143.5k3](/packages/spekulatius-phpscraper)[mck89/peast

Peast is PHP library that generates AST for JavaScript code

18834.7M29](/packages/mck89-peast)[ergebnis/json-pointer

Provides an abstraction of a JSON pointer.

1921.8M6](/packages/ergebnis-json-pointer)[sproutcms/cms

Enterprise content management and framework

241.6k4](/packages/sproutcms-cms)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
