pomidoros / wp-db-cleaner

Replace one word to another in all database on mysql engine which supported by Wordpress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

URL-BD-CLEANER

npm mysql composer

Project using

Description

There is the unique product in front on you. The world won't be the same again. Welcome! The script which replace one phrase to another in you mysql Database. Just point two words into console string and script will do everything for you.

Installing

  • cd /path/to/project/with/package/json/on/root

>> composer require slovenberg/url-db-cleaner

Using

  • You should have next standard variables in PHP environment: DB_HOST, DB_NAME, DB_USER, DB_PASSWORD.

  • There is only one public static method which can start the main process: start. Insert it into your script like:

use slovenberg\WpDbCleaner\Main;

Main::start();

or use short version:

slovenberg\WpDbCleaner\Main::start();
  • Run your script by console like:
>> php your_script.php old_word new_word

About

Replace one word to another in all database on mysql engine which supported by Wordpress


Languages

Language:PHP 100.0%