slovenberg/wp-db-cleaner

"Replacement of one word to second word in database for wordpress"

v2.1.0 2021-09-21 19:51 UTC

This package is not auto-updated.

Last update: 2024-05-29 06:17:10 UTC


README

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