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: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- guzzlehttp/guzzle: 7.8.1
- jfcherng/php-diff: 6.16.2
- symfony/console: 7.1.1
- symfony/filesystem: 7.1.1
This package is auto-updated.
Last update: 2024-10-26 14:18:14 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
PHP ^8.3
version.