A WP-CLI-based tool to migrate data from various e-commerce platforms to WooCommerce. The initial focus is on migrating products from Shopify.
- PHP 7.4 or higher
- Composer
- WP-CLI
- Clone the repository.
- Navigate to the
WooCommerce-Migrator
directory. - Install the dependencies:
composer install
This project adheres to the WooCommerce and WordPress coding standards.
- To check for coding standard violations, run the linter:
composer lint
- To automatically fix any fixable violations, run the formatter:
composer format
This project uses PHPUnit for its test suite.
Before running the tests for the first time, you need to set up the WordPress test environment and database.
- Run the setup script:
composer test:setup
By default, this script will attempt to connect to the database using the username root
with an empty password. If you need to use different credentials, you can override the defaults using environment variables:
DB_NAME=your_db_name DB_USER=your_user DB_PASS=your_pass DB_HOST=localhost composer test:setup
Once the test environment is set up, you can run the test suite:
composer test