vlw/wp

Stand-alone library for performing DML operations on a WordPress database and more

Maintainers

Details

codeberg.org/vlw/wp

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

pkg:composer/vlw/wp

1.3.0 2026-02-24 10:52 UTC

This package is auto-updated.

Last update: 2026-02-24 10:53:29 UTC


README

This library is a collection of various tools for parsing and performing DML operations on a WordPress database and its content. It is meant to be used as a stand-alone library and does not require WordPress to be installed.

Installation

composer require vlw/wp

How to use

A variety of tools are available, refer to the documentation for each tool to see its usage instructions.

For example:

use vlw\WP\Posts\Post;

// Retrieve a new Post instance for post ID 1234
$post = new Post(1234);

// Retrieve the content for this post
$post->post_content;
// Update the datetime modified for this post
$post->post_modified = new DateTimeImmutable();

Plugins

This library also has support for the following plugins: Plugin|Versions|Reference --|--|-- Redirection|5.3.10 (limited support)|Plugins/redirection