PHPackages                             marlemiesz/wp-sdk - 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. marlemiesz/wp-sdk

ActiveLibrary[API Development](/categories/api)

marlemiesz/wp-sdk
=================

The WP API SDK for PHP is a client library that makes it easy to interact with the WordPress REST API from a PHP application. This SDK provides an easy-to-use interface for sending HTTP requests and handling the responses, and also includes convenient methods for accessing common API endpoints and data structures. With this SDK, developers can easily retrieve, create, update, and delete content and metadata within a WordPress site, and also perform other common tasks such as managing users and media. The WP API SDK for PHP is an essential tool for any PHP developer working with the WordPress platform, and provides a powerful and flexible way to build custom applications and integrations that interact with WordPress.

v0.1(3y ago)015PHPPHP ^8.2

Since Feb 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/marlemiesz/wp-sdk)[ Packagist](https://packagist.org/packages/marlemiesz/wp-sdk)[ RSS](/packages/marlemiesz-wp-sdk/feed)WikiDiscussions master Synced yesterday

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

Installation
============

[](#installation)

Require this package in your `composer.json` and update composer.

```
"marlemiesz/wp-sdk": "dev-master"
```

OR

```
composer require marlemiesz/wp-sdk: dev-master
```

Docs
====

[](#docs)

Authentication
--------------

[](#authentication)

To use the SDK, you need to create an instance of the `Wordpress` class and pass it your credentials.

```
use Marlemiesz\SdkWordpress\Wordpress;
$wp = new Wordpress('http://example.com', 'username', 'password');
```

Categories
----------

[](#categories)

Api Reference:

### Get all categories

[](#get-all-categories)

```
$categories = $wp->getCategories();
```

Posts
-----

[](#posts)

Api Reference:

### Get all posts

[](#get-all-posts)

```
$posts = $wp->getPosts();
```

### Add new post

[](#add-new-post)

```
$post = $wp->addPost(
    'Post title',
    'Post content',
    \Marlemiesz\WpSDK\Enum\PostStatuses::PUBLISH,
    [1, 2, 3],
        )?->getFirstItem();
```

### Update post

[](#update-post)

```
$post = $wp->updatePost(
    1,
    'Post title',
    'Post content',
    \Marlemiesz\WpSDK\Enum\PostStatuses::PUBLISH,
    [1, 2, 3],
        )?->getFirstItem();
```

### Delete post

[](#delete-post)

```
$wp->deletePost(1);
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1243d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/882e5c9cdc30b052d3c2d2f225d52e2341246fd0bd603cfb0d0b9c5bd0d784b0?d=identicon)[mlemiesz](/maintainers/mlemiesz)

---

Top Contributors

[![marlemiesz](https://avatars.githubusercontent.com/u/4789303?v=4)](https://github.com/marlemiesz "marlemiesz (10 commits)")

---

Tags

phpwordpresssdkwp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/marlemiesz-wp-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/marlemiesz-wp-sdk/health.svg)](https://phpackages.com/packages/marlemiesz-wp-sdk)
```

###  Alternatives

[aws/aws-sdk-php

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

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k9.5M89](/packages/openai-php-laravel)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[resend/resend-php

Resend PHP library.

617.2M43](/packages/resend-resend-php)[php-opencloud/openstack

PHP SDK for OpenStack APIs. Supports BlockStorage, Compute, Identity, Images, Networking and Metric Gnocchi

2312.4M25](/packages/php-opencloud-openstack)

PHPackages © 2026

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