PHPackages                             parteieuropa/wordpress-api - 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. parteieuropa/wordpress-api

ActiveLibrary[API Development](/categories/api)

parteieuropa/wordpress-api
==========================

A PHP SDK for interacting with the WordPress REST API

v0.2.0(3d ago)110↓100%MITPHP ^8.0

Since Jul 5Compare

[ Source](https://github.com/Die-PARTEI-in-Europa/wordpress-api)[ Packagist](https://packagist.org/packages/parteieuropa/wordpress-api)[ RSS](/packages/parteieuropa-wordpress-api/feed)WikiDiscussions Synced today

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

WordPress API SDK
=================

[](#wordpress-api-sdk)

[![Packagist](https://camo.githubusercontent.com/cba4c5607d552beb2ff75e79b198302f6f6c9b6b3a73748a5e9f7a92f6cda6f8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7061727465696575726f70612f776f726470726573732d6170692e737667)](https://packagist.org/packages/parteieuropa/wordpress-api)[![License](https://camo.githubusercontent.com/13e1a8487319bb5645369b9bc86e88bb3f9f303519416d4133a060e3a6bc36a7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7061727465696575726f70612f776f726470726573732d6170692e737667)](https://packagist.org/packages/parteieuropa/wordpress-api)

A modern PHP SDK for interacting with the WordPress REST API. This SDK provides a clean, object-oriented interface for fetching posts, pages, menus, and other WordPress content with full pagination support.

**📘 [Full documentation &amp; API reference](https://die-partei-in-europa.github.io/wordpress-api/)** — auto-generated from source, always up to date.

> **Running a headless WordPress back end?** This SDK pairs with the [Headless WordPress Manager](https://github.com/Die-PARTEI-in-Europa/headless-wp-plugin) plugin — it disables the WordPress front end, rewrites every view link to your decoupled site and adds a signed preview endpoint that this SDK can consume. Either can be used on its own.

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

[](#installation)

Install via [Composer](https://getcomposer.org) from [Packagist](https://packagist.org/packages/parteieuropa/wordpress-api):

```
composer require parteieuropa/wordpress-api
```

Requires PHP 8.0 or higher.

Quick Start
-----------

[](#quick-start)

```
use WordPressApi\Client;

$client = new Client('https://example.com');

$posts = $client->posts()->all();
foreach ($posts->getData() as $post) {
    echo $post['title']['rendered'] . "\n";
}
```

Features
--------

[](#features)

- **Posts &amp; Pages**: Fetch, filter, sort and paginate with a fluent query builder
- **Menus**: List menus, fetch items, build hierarchical menu trees
- **Settings &amp; Homepage**: Read site configuration, intelligently resolve the homepage
- **Search**: Full-text search across posts, pages, and multiple content types
- **Polylang Support**: Filter posts and pages by language
- **Pagination**: Built-in pagination with automatic link handling
- **Type Safety**: Full PHP 8 type hints and return types
- **Well Tested**: 104 unit &amp; integration tests

Documentation
-------------

[](#documentation)

Detailed guides live in [`docs/`](docs/):

- [Architecture](docs/architecture.md)
- [Usage](docs/usage.md)
- [Authentication](docs/authentication.md)
- [Settings](docs/settings.md)
- [Homepage](docs/homepage.md)
- [Menus](docs/menus.md)
- [Search](docs/search.md)
- [Polylang Integration](docs/polylang.md)
- [Testing &amp; Development](docs/testing.md)
- [API Reference (cheat sheet)](docs/api-reference.md)
- [Roadmap](docs/roadmap.md)

The full class/method reference (generated from PHPDoc via phpDocumentor) is published at [die-partei-in-europa.github.io/wordpress-api](https://die-partei-in-europa.github.io/wordpress-api/).

Testing
-------

[](#testing)

```
composer test           # unit + integration
composer test:unit      # unit only
composer test:integration  # requires docker-compose up -d
```

See [docs/testing.md](docs/testing.md) for the full setup.

License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance99

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

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

Total

2

Last Release

3d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4dc278e15f9dd5f3acf280c025a838f2a5e8f83868988c51ef51bb1adfdfcadd?d=identicon)[tvorwachs](/maintainers/tvorwachs)

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/parteieuropa-wordpress-api/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k40](/packages/neuron-core-neuron-ai)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

293.1k](/packages/eslazarev-wildberries-sdk)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1943.1k5](/packages/aimeos-prisma)

PHPackages © 2026

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