PHPackages                             balsama/drupalorg-dom-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. balsama/drupalorg-dom-parser

ActiveLibrary

balsama/drupalorg-dom-parser
============================

Scrapes statistics about projects on Drupal.org

1.0.x-dev(8y ago)1281[1 issues](https://github.com/balsama/drupalorg-dom-parser/issues)MITPHP

Since Oct 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/balsama/drupalorg-dom-parser)[ Packagist](https://packagist.org/packages/balsama/drupalorg-dom-parser)[ RSS](/packages/balsama-drupalorg-dom-parser/feed)WikiDiscussions 1.0.x Synced today

READMEChangelogDependencies (2)Versions (5)Used By (0)

[![Build Status](https://camo.githubusercontent.com/75a3f42654537b3b2892cc24e4a4bbe49c0767c0cf1f1182e06d5de93f65c1db/68747470733a2f2f7472617669732d63692e6f72672f62616c73616d612f64727570616c6f72672d646f6d2d7061727365722e7376673f6272616e63683d312e302e78)](https://travis-ci.org/balsama/drupalorg-dom-parser)

Drupal.org DOM Parser
=====================

[](#drupalorg-dom-parser)

Retrieves information about a specified project from Drupal.org.

Usage
-----

[](#usage)

```
$project_name = 'ctools';
$project_stats = new Balsama\DrupalOrgProject\Stats($project_name);

```

Available information
---------------------

[](#available-information)

### General (Taken from the "Project information" section of the project page)

[](#general-taken-from-the-project-information-section-of-the-project-page)

- Total downloads `$project->getTotalDownloads`
- Total installs `$project->getTotalInstalls`

### Releases (Deduced from the "Downloads" section of the project page)

[](#releases-deduced-from-the-downloads-section-of-the-project-page)

- Drupal 8 Stability `$project_stats->getD8Stability`

### Usage (Taken from the Project Usage table on the "project/usage" page)

[](#usage-taken-from-the-project-usage-table-on-the-projectusage-page)

- Current Drupal 8 usage `$project_stats->getCurrentD8Usage`
- Current Drupal 7 usage `$project_stats->getCurrentD7Usage`
- All usage data `$project_stats->getAllUsage`

### Other

[](#other)

- Human-readable name `$project_stats->getHumanReadableName`
- Machine name `$project_stats->getMachineName`

Other classes
-------------

[](#other-classes)

If you're only interested in getting the info from the usage table, you can use the `Usage` class instead which only fetches data from the /project/usage/{project\_name} page. This is somewhat less likely to break as D.O seems to change the markup of that page less frequently.

Why?
----

[](#why)

At the time this was created, there wasn't any public facing D.O API. Even now, there is some information that's either not available or is cumbersome to get via the API.

###  Health Score

20

—

LowBetter than 16% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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 ~11 days

Total

4

Last Release

3039d ago

Major Versions

0.0.x-dev → 1.0.0-alpha12017-11-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/f6073b94ae2519d22681a73ae734eff3d679543ea15bcae3a2d4dbcb271ca9ac?d=identicon)[balsama](/maintainers/balsama)

---

Top Contributors

[![balsama](https://avatars.githubusercontent.com/u/1536654?v=4)](https://github.com/balsama "balsama (26 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/balsama-drupalorg-dom-parser/health.svg)

```
[![Health](https://phpackages.com/badges/balsama-drupalorg-dom-parser/health.svg)](https://phpackages.com/packages/balsama-drupalorg-dom-parser)
```

###  Alternatives

[hmerritt/imdb-api

IMDB API that can fetch film data and search results

6911.3k](/packages/hmerritt-imdb-api)[jkuchar/pdfresponse

PdfResponse is wrapper of mPDF for Nette.

10325.2k](/packages/jkuchar-pdfresponse)[lochmueller/seocli

SEO CLI Tool

1013.4k](/packages/lochmueller-seocli)

PHPackages © 2026

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