piotrpress/wordpress-diff

WordPress Diff is a command line tool for comparing contents of two WordPress installations using REST API and outputting the differences to HTML files for easy comparison.

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

pkg:composer/piotrpress/wordpress-diff

v1.0.1 2025-02-12 10:07 UTC

This package is auto-updated.

Last update: 2025-10-12 11:47:24 UTC


README

WordPress Diff is a command line tool for comparing contents of two WordPress installations using REST API and outputting the differences to HTML files for easy comparison.

Example

$ php wp-diff https://oldsite.com https://newsite.com --exclude-type=post --exclude-post=sample-page

Setup

$ docker compose up -d 
$ docker compose exec php bash -c "composer install"
$ docker compose down

Usage

$ docker compose up -d
$ docker compose exec php bash -c "php wp-diff <old-site> <new-site> [--exclude-type=<post-type>] ... [--exclude-post=<post-link>] ..."
$ docker compose down

Parameters

The <old-site> and <new-site> are the URLs of the WordPress installations to compare.

NOTE: URLs can include the authentication credentials in the form: https://user:password@example.com.

The --exclude-type and --exclude-post options are used to exclude post types and posts from the comparison.

Requirements

License

MIT