PHPackages                             alessandrominoccheri/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. alessandrominoccheri/wordpress-rest-api-client

ActiveLibrary

alessandrominoccheri/wordpress-rest-api-client
==============================================

v1.3.4(6y ago)0149PHPPHP &gt;= 5.6, &lt;= 8.0

Since Jan 5Pushed 6y agoCompare

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

READMEChangelogDependencies (6)Versions (9)Used By (0)

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 alessandrominoccheri/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/peridot
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity73

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

Recently: every ~12 days

Total

8

Last Release

2482d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ea71f884c621ad504ca545b717e107f3c6e4854d9e38c2dbd5a96ff184d3c9c?d=identicon)[AlessandroMinoccheri](/maintainers/AlessandroMinoccheri)

---

Top Contributors

[![mrkrstphr](https://avatars.githubusercontent.com/u/164472?v=4)](https://github.com/mrkrstphr "mrkrstphr (15 commits)")[![shadiakiki1986](https://avatars.githubusercontent.com/u/8392324?v=4)](https://github.com/shadiakiki1986 "shadiakiki1986 (4 commits)")[![drinky78](https://avatars.githubusercontent.com/u/8080643?v=4)](https://github.com/drinky78 "drinky78 (3 commits)")[![AlessandroMinoccheri](https://avatars.githubusercontent.com/u/3356506?v=4)](https://github.com/AlessandroMinoccheri "AlessandroMinoccheri (3 commits)")[![austinsmorris](https://avatars.githubusercontent.com/u/1616868?v=4)](https://github.com/austinsmorris "austinsmorris (3 commits)")[![boboudreau](https://avatars.githubusercontent.com/u/696219?v=4)](https://github.com/boboudreau "boboudreau (2 commits)")[![drake-p](https://avatars.githubusercontent.com/u/2564772?v=4)](https://github.com/drake-p "drake-p (1 commits)")[![Snaver](https://avatars.githubusercontent.com/u/194855?v=4)](https://github.com/Snaver "Snaver (1 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

538204.9M23](/packages/league-uri-interfaces)[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[simplesamlphp/saml2

SAML2 PHP library from SimpleSAMLphp

30317.2M40](/packages/simplesamlphp-saml2)[php-heroku-client/php-heroku-client

A PHP client for the Heroku Platform API

24404.8k4](/packages/php-heroku-client-php-heroku-client)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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