wp/README.md
2026-02-12 13:19:50 +01:00

23 lines
670 B
Markdown

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:
```php
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();
```