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

ActiveLibrary[API Development](/categories/api)

malanciault/wordpress-rest-api-client
=====================================

1.1.5(6y ago)031mitPHPPHP &gt;= 5.6, &lt;= 8.0

Since Oct 25Pushed 6y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (6)Versions (7)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 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 Malanciault\WpApiClient\Auth\WpBasicAuth;
use Malanciault\WpApiClient\Http\GuzzleAdapter;
use Malanciault\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

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

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

Total

6

Last Release

2358d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4943143?v=4)[Marc-André Lanciault](/maintainers/malanciault)[@malanciault](https://github.com/malanciault)

---

Top Contributors

[![malanciault](https://avatars.githubusercontent.com/u/4943143?v=4)](https://github.com/malanciault "malanciault (7 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69734.4M144](/packages/algolia-algoliasearch-client-php)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35729.6k2](/packages/telnyx-telnyx-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[n1ebieski/ksef-php-client

PHP API client that allows you to interact with the API Krajowego Systemu e-Faktur

8754.6k](/packages/n1ebieski-ksef-php-client)[trycourier/courier

Courier PHP SDK

15654.8k](/packages/trycourier-courier)

PHPackages © 2026

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