PHPackages                             vnn/wordpress-rest-api-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. [API Development](/categories/api)
4. /
5. vnn/wordpress-rest-api-client

ActiveLibrary[API Development](/categories/api)

vnn/wordpress-rest-api-client
=============================

1.3.0(5y ago)76198.1k↓47.3%63[9 PRs](https://github.com/varsitynewsnetwork/wordpress-rest-api-client/pulls)1PHPPHP ^7.0

Since Nov 9Pushed 2y ago10 watchersCompare

[ Source](https://github.com/varsitynewsnetwork/wordpress-rest-api-client)[ Packagist](https://packagist.org/packages/vnn/wordpress-rest-api-client)[ RSS](/packages/vnn-wordpress-rest-api-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (7)Used By (1)

wordpress-rest-api-client
=========================

[](#wordpress-rest-api-client)

> A Wordpress REST API client for PHP

[![Travis](https://camo.githubusercontent.com/2e2f3b2db22f64ce541ed27bb3fc4f65297f9029395669b96593cd2d8a65e056/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f766172736974796e6577736e6574776f726b2f776f726470726573732d726573742d6170692d636c69656e742e7376673f6d61784167653d323539323030303f7374796c653d666c61742d737175617265)](https://travis-ci.org/varsitynewsnetwork/wordpress-rest-api-client)

For when you need to make [Wordpress REST API calls](http://v2.wp-api.org/) from some other PHP project, for some reason.

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

[](#installation)

This library can be installed with [Composer](https://getcomposer.org):

```
composer require vnn/wordpress-rest-api-client

```

The library will require an Http library to run. [Guzzle](http://guzzlephp.org) is supported by the library, but you can use any Http library of your choise, so long as your write an adapter for that library.

To install Guzzle:

```
composer require guzzlehttp/guzzle

```

Usage
-----

[](#usage)

Example:

```
use Vnn\WpApiClient\Auth\WpBasicAuth;
use Vnn\WpApiClient\Http\GuzzleAdapter;
use Vnn\WpApiClient\WpClient;

require 'vendor/autoload.php';

$client = new WpClient(new GuzzleAdapter(new GuzzleHttp\Client()), 'http://yourwordpress.com');
$client->setCredentials(new WpBasicAuth('user', 'securepassword'));

$user = $client->users()->get(2);

print_r($user);
```

Testing
-------

[](#testing)

```
composer install
vendor/bin/phpunit
```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity48

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

4

Last Release

2162d ago

PHP version history (2 changes)1.0.0PHP &gt;= 5.6, &lt;= 8.0

1.3.0PHP ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/56d64bb281704f2cafc6fc8dfeaeca65db72b8b49e0f999468503307b1235814?d=identicon)[boboudreau](/maintainers/boboudreau)

![](https://www.gravatar.com/avatar/03b024ab0f53ad6251ff0aa65e8b0e701874acea2d2e16bd8488de1015ad5df6?d=identicon)[dusty.satt](/maintainers/dusty.satt)

---

Top Contributors

[![mrkrstphr](https://avatars.githubusercontent.com/u/164472?v=4)](https://github.com/mrkrstphr "mrkrstphr (15 commits)")[![boboudreau](https://avatars.githubusercontent.com/u/696219?v=4)](https://github.com/boboudreau "boboudreau (7 commits)")[![shadiakiki1986](https://avatars.githubusercontent.com/u/8392324?v=4)](https://github.com/shadiakiki1986 "shadiakiki1986 (4 commits)")[![austinsmorris](https://avatars.githubusercontent.com/u/1616868?v=4)](https://github.com/austinsmorris "austinsmorris (3 commits)")[![annasalamin](https://avatars.githubusercontent.com/u/120247239?v=4)](https://github.com/annasalamin "annasalamin (2 commits)")[![Snaver](https://avatars.githubusercontent.com/u/194855?v=4)](https://github.com/Snaver "Snaver (1 commits)")[![drake-p](https://avatars.githubusercontent.com/u/2564772?v=4)](https://github.com/drake-p "drake-p (1 commits)")[![michael-roger](https://avatars.githubusercontent.com/u/35877543?v=4)](https://github.com/michael-roger "michael-roger (1 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/vnn-wordpress-rest-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/vnn-wordpress-rest-api-client/health.svg)](https://phpackages.com/packages/vnn-wordpress-rest-api-client)
```

###  Alternatives

[algolia/algoliasearch-client-php

API powering the features of Algolia.

69433.0M114](/packages/algolia-algoliasearch-client-php)[swisnl/json-api-client

A PHP package for mapping remote JSON:API resources to Eloquent like models and collections.

211473.2k12](/packages/swisnl-json-api-client)[php-heroku-client/php-heroku-client

A PHP client for the Heroku Platform API

24404.8k4](/packages/php-heroku-client-php-heroku-client)[yoti/yoti-php-sdk

Yoti SDK for quickly integrating your PHP backend with Yoti

27539.9k1](/packages/yoti-yoti-php-sdk)[trycourier/courier

Courier PHP SDK

16643.9k](/packages/trycourier-courier)[commercetools/commercetools-sdk

The official PHP SDK for the commercetools Composable Commerce APIs

19281.5k](/packages/commercetools-commercetools-sdk)

PHPackages © 2026

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