harrykdeveloper/wordpress-change-urls-db

Wordpress change urls in the Database during migration of old domain to new domain.

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/harrykdeveloper/wordpress-change-urls-db

1.0.2 2020-05-01 12:18 UTC

This package is auto-updated.

Last update: 2025-12-29 03:39:51 UTC


README

Example Usage:

include the script on the page and execute the URL from browser and remove the code after URL updates.

include_once __DIR__.'/vendor/autoload.php';

use harrykdeveloper\Wordpress\DbMigration;

(new DbMigration())->setOptions([
    'db_name' => 'wordpress',
    'db_user' => 'root',
    'db_pass' => 'root',
    'db_host' => 'localhost:3308',
    'db_tables_prefix' => 'wp_',
    'old_domain' => 'http://localhost/oldurl',
    'new_domain' => 'http://localhost/newurl',
])->migrate();