定制 wagento/module-prune-customer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wagento/module-prune-customer

Composer 安装命令:

composer require wagento/module-prune-customer

包简介

List and prune SPAM customers using CLI commands

README 文档

README

Main Functionalities

Wagento Prune Customer extension add CLI commands that

  • finds SPAM customers such as no address or no order or ".ru" emails,
  • lists SPAM customers as comma separated CSV format or table structure,
  • prunes SPAM customers.

CLI Usage

  • to list only SPAM customers that are commonly known (includes "%.ru", "%yandex%" or "http" in email or name), use option -s or --spam-identifier: >$ php bin/magento prune_customer:list --spam-identifier

  • to list only SPAM customers with no address and no orders, use option -a or --no-address-order: >$ php bin/magento prune_customer:list --no-address-order

  • to list both SPAM customers that are commonly known and with no address and no orders customers, use option -s or --spam-identifier and -a or --no-address-order: >$ php bin/magento prune_customer:list --spam-identifier --no-address-order

  • to list SPAM customers with custom email search criteria, use argument spam-emails: >$ php bin/magento prune_customer:list "%.ru" "%yandex%"

  • to list SPAM customers as comma separated CSV format, use option --csv. If no --csv option used, it will show result as table structure: >$ php bin/magento prune_customer:list --csv

  • you can pipe CSV result into any file: >$ php bin/magento prune_customer:list --csv >> spam_list_001.csv

  • to list and delete SPAM customers, use option --delete: >$ php bin/magento prune_customer:list --delete

    >We highly suggest to create database backup before this action. Are you sure with deleting found SPAM customers? [yes/no]:

Note: This will ask confirmation question and type yes to proceed, type nothing or anything to skip delete process.

  • to check help document for CLI command, use option -h or --help: >$ php bin/magento prune_customer:list --help
Description:
  Show SPAM customer lists to prune

Usage:
  prune_customer:list [options] [--] [<spam-emails>...]

Arguments:
  spam-emails             Search criteria with SPAM email

Options:
  -a, --no-address-order  Search criteria with no address AND no order
  -s, --spam-identifier   Search criteria with commonly known SPAM cases
      --csv               Show result as comma separated instead of table structure
      --delete            Delete customers with Search criteria
  -h, --help              Display this help message
  -q, --quiet             Do not output any message
  -V, --version           Display this application version
      --ansi              Force ANSI output
      --no-ansi           Disable ANSI output
  -n, --no-interaction    Do not ask any interactive question
  -v|vv|vvv, --verbose    Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • When you see memory limit issue, you can increase memory limit for CLI command: >$ php -dmemory_limit=-1 bin/magento prune_customer:list --no-address --no-order

Requirements

  • PHP 7.1.3+, 7.2.0+ or 7.3.0+
  • Magento Open Source/Commerce 2.2.0+, 2.3.0+ or 2.4.0+

Installation

Composer (recommended)

You can use the following commands to install it from a terminal or command prompt:

$ cd /path/to/your/site
$ composer require wagento/module-prune-customer

Manual

This extension can be downloaded from [GitHub] and installed into the app/code directory of your Magento installation with these commands:

$ cd /path/to/your/site/app/code
$ mkdir Wagento
$ cd Wagento
$ git clone git@bitbucket.org:wagento-global/prune-customer-accounts.git PruneCustomer

Post-Install

After installing the extension for the first time, please run these commands to enable it:

$ cd /path/to/your/site
$ php bin/magento module:enable Wagento_PruneCustomer

Once you have enabled the extension, please follow the instructions in the Post-Install, Post-Update or Post-Uninstall section to complete the installation process.

Updating

Composer

If you've installed the extension from the Magento Marketplace using Composer, run these commands from your terminal or command prompt to update it:

$ cd /path/to/your/site
$ composer update wagento/module-prune-customer

Manual

If you've installed the extension from GitHub manually, run these commands from your terminal or command prompt to update it:

$ cd /path/to/your/site/app/code/Wagento/PruneCustomer
$ git pull

Uninstalling

Composer

If you've installed the extension from the Magento Marketplace using Composer, run these commands from your terminal or command prompt to remove its data and package:

$ cd /path/to/your/site
$ php bin/magento module:uninstall -r Wagento_PruneCustomer

Manual

If you've installed the extension manually, run these commands from your terminal or command prompt to remove its data:

$ cd /path/to/your/site/app/code
$ rm -rf Wagento/PruneCustomer
$ mysql -u your_user -p your_database <<'SQL'
DELETE FROM `setup_module` WHERE `module` = 'Wagento_PruneCustomer';
SQL

Post-Install, Post-Update or Post-Uninstall

To complete the installation, update or uninstall process, please run these commands:

$ cd /path/to/your/site
$ php bin/magento setup:upgrade
$ php bin/magento setup:di:compile
$ php bin/magento setup:static-content:deploy

wagento/module-prune-customer 适用场景与选型建议

wagento/module-prune-customer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 07 月 20 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 wagento/module-prune-customer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 wagento/module-prune-customer 我们能提供哪些服务?
定制开发 / 二次开发

基于 wagento/module-prune-customer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 11
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2022-07-20