PHPackages                             rarst/wporg-client - 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. rarst/wporg-client

ActiveLibrary

rarst/wporg-client
==================

Guzzle client for WordPress.org APIs

0.6(3y ago)721.7k↓50%8MITPHPPHP ^7.2.5 || ^8.0

Since Mar 15Pushed 3y ago2 watchersCompare

[ Source](https://github.com/Rarst/wporg-client)[ Packagist](https://packagist.org/packages/rarst/wporg-client)[ RSS](/packages/rarst-wporg-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

WPorg Client
============

[](#wporg-client)

[![Current version](https://camo.githubusercontent.com/1e3d1a23faf72a02e9b4762ed127dd133efb6dbcb1e795e33c887c095dec2ad8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72617273742f77706f72672d636c69656e743f6c6162656c3d76657273696f6e)](CHANGELOG.md)[![PHP required](https://camo.githubusercontent.com/301666c43b05ffef00a52c5ec0480d1eafda7f11742fb0f3ce749969fe53a71f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f72617273742f77706f72672d636c69656e74)](composer.json)

WPorg Client is a standalone HTTP client for public [WordPress.org API](http://codex.wordpress.org/WordPress.org_API).

It aims to provide consistent centralized experience and is independent from WordPress core.

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

[](#installation)

```
composer require rarst/wporg-client
```

```
$wporgClient  = \Rarst\Guzzle\WporgClient::getClient();
```

Examples
--------

[](#examples)

### Core

[](#core)

```
$updates      = $wporgClient->getUpdates();
$updatesFor   = $wporgClient->getUpdates('4.0', 'en_US');
$translations = $wporgClient->getTranslations('4.1');
$credits      = $wporgClient->getCredits('4.1');
$checksums    = $wporgClient->getChecksums('4.1', 'en_US');
```

### Themes

[](#themes)

```
$theme        = $wporgClient->getTheme('twentyfifteen');
$translations = $wporgClient->getThemeTranslations('twentyfifteen', '1.0');

$popular      = $wporgClient->getThemesBy('browse', 'popular');
$featured     = $wporgClient->getThemesBy('browse', 'featured');
$new          = $wporgClient->getThemesBy('browse', 'new');
$updated      = $wporgClient->getThemesBy('browse', 'updated');
$search       = $wporgClient->getThemesBy('search', 'twenty');
$tagged       = $wporgClient->getThemesBy('tag', 'white');
$authors      = $wporgClient->getThemesBy('author', 'wordpressdotorg');

$featureList  = $wporgClient->getThemeFeatureList();
```

### Plugins

[](#plugins)

```
$plugin       = $wporgClient->getPlugin('hello-dolly');
$stats        = $wporgClient->getPluginStats('hello-dolly');
$downloads    = $wporgClient->getPluginDownloads('hello-dolly', 7);
$translations = $wporgClient->getPluginTranslations('akismet', '3.0');

$popular      = $wporgClient->getPluginsBy('browse', 'popular');
$featured     = $wporgClient->getPluginsBy('browse', 'featured');
$new          = $wporgClient->getPluginsBy('browse', 'new');
$updated      = $wporgClient->getPluginsBy('browse', 'updated');
$search       = $wporgClient->getPluginsBy('search', 'dolly');
$tagged       = $wporgClient->getPluginsBy('tag', 'widget');
$authors      = $wporgClient->getPluginsBy('author', 'wordpressdotorg');

$importers    = $wporgClient->getImporters();
$tags         = $wporgClient->getHotTags();
```

### Events

[](#events)

```
$location     = $wporgClient->getEvents(['location' => 'Seattle']));
$number       = $wporgClient->getEvents(['location' => 'Australia', 'number' => 5]));
$locale       = $wporgClient->getEvents(['timezone' => 'Europe/Berlin', 'locale' => 'de_DE', 'location' => 'Dresden']));
$coordinates  = $wporgClient->getEvents(['latitude' => '51.051', 'longitude' => '13.738']));
$ip           = $wporgClient->getEvents(['ip' => '136.0.16.1']));
$country      = $wporgClient->getEvents(['country' => 'IT']));
```

### Other

[](#other)

#### Stats

[](#stats)

```
$wordpress    = $wporgClient->getStats('wordpress');
$php          = $wporgClient->getStats('php');
$mysql        = $wporgClient->getStats('mysql');
```

#### Secret keys &amp; salts

[](#secret-keys--salts)

```
$secret       = $wporgClient->getSalt();
```

#### Browse happy

[](#browse-happy)

```
$browser      = $wporgClient->getBrowser('Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.17');
```

License
-------

[](#license)

MIT

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 93.5% 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 ~530 days

Recently: every ~508 days

Total

6

Last Release

1429d ago

PHP version history (2 changes)0.1PHP &gt;=5.4

0.6PHP ^7.2.5 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/689ddc4f33541ac4a001d247e560f8805d219a95e7e42a16e0d22b9409f385cb?d=identicon)[Rarst](/maintainers/Rarst)

---

Top Contributors

[![Rarst](https://avatars.githubusercontent.com/u/737584?v=4)](https://github.com/Rarst "Rarst (43 commits)")[![tamlyn](https://avatars.githubusercontent.com/u/115310?v=4)](https://github.com/tamlyn "tamlyn (2 commits)")[![khromov](https://avatars.githubusercontent.com/u/1207507?v=4)](https://github.com/khromov "khromov (1 commits)")

---

Tags

api-clientwordpress

### Embed Badge

![Health badge](/badges/rarst-wporg-client/health.svg)

```
[![Health](https://phpackages.com/badges/rarst-wporg-client/health.svg)](https://phpackages.com/packages/rarst-wporg-client)
```

###  Alternatives

[qcloud/cos-sdk-v5

PHP SDK for QCloud COS

2051.5M129](/packages/qcloud-cos-sdk-v5)[keen-io/keen-io

A PHP library for reporting events to the Keen IO API

1332.3M7](/packages/keen-io-keen-io)[restcord/restcord

REST Library for the Discord API

177452.4k11](/packages/restcord-restcord)[mohammad-waleed/keycloak-admin-client

Connect to keycloak admin api easily

106674.5k](/packages/mohammad-waleed-keycloak-admin-client)[zfr/zfr-shopify

PHP library for interacting with the Shopify REST API

37198.8k](/packages/zfr-zfr-shopify)[loco/loco

Loco SDK for PHP, including REST API client

19626.8k4](/packages/loco-loco)

PHPackages © 2026

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