2017 © Pedro Peláez
 

magento2-module magento2-content-fuzzyfyr

The Content Fuzzyfyr module for Magento2 fills up empty content fields - and if needed - switches real content with dummy content. This is for development purposes, e.g. save time to prepare test data and being compliant to GDPR.

image

allindata/magento2-content-fuzzyfyr

The Content Fuzzyfyr module for Magento2 fills up empty content fields - and if needed - switches real content with dummy content. This is for development purposes, e.g. save time to prepare test data and being compliant to GDPR.

  • Wednesday, July 25, 2018
  • by allindata
  • Repository
  • 1 Watchers
  • 2 Stars
  • 42 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Repository abandoned 2021-10-15

This repository has moved to hivecommerce/magento2-content-fuzzyfyr., (*1)

Content Fuzzyfyr Module for Magento® 2

The Content Fuzzyfyr module for Magento® 2 fills up empty content fields - and if needed - switches real content with dummy content. This is for development purposes, e.g. save time to prepare test data and being compliant to GDPR., (*2)

Features:

  • Fill up empty content and image fields with dummy content - completely automated
  • Match GDPR compliance for development, when using production data
  • Export your production database already matching GDPR compliance
  • Use parameters to control the sections required to be filled up with dummy content

Installation

The preferred way of installing allindata/magento2-content-fuzzyfyr is through Composer. Simply add allindata/magento2-content-fuzzyfyr as a dependency:, (*3)

composer.phar require allindata/magento2-content-fuzzyfyr

Optional you can download the latest version here and install the decompressed code in your projects directory under app/code/AllInData/ContentFuzzyfyr., (*4)

Post-Install

After the installment of the module source code, the module has to be enabled by the Magento® 2 CLI., (*5)

bin/magento module:enable AllInData_ContentFuzzyfyr

System Upgrade

After enabling the module, the Magento® 2 system must be upgraded., (*6)

If the system mode is set to production, run the compile command first. This is not necessary for the developer mode., (*7)

bin/magento setup:di:compile

To upgrade the system, the upgrade command must be run., (*8)

bin/magento setup:upgrade

User Guide

Find the complete user guide here., (*9)

How to use

CLI

Content Fuzzyfyr

The Content Fuzzyfyr Module for Magento® 2 provides an Magento® 2 CLI command aid:content:fuzzyfyr to modify existing content (or only empty fields with the --only-empty flag) to be switched with some defined default value:, (*10)

bin/magento aid:content:fuzzyfyr [options]

Note: Be aware the command only runs in non-production mode to avoid messing up production data on mistake., (*11)

You may want to switch to default or developer mode to run the command:, (*12)

bin/magento deploy:mode:set developer

List of flags

Option Description
--only-empty Use dummy content only if the original data is equal to empty
--force Allow execution in production mode (not recommended!)
--categories Apply dummy content to categories (content, meta description)
--cms-blocks Apply dummy content to CMS Blocks (content)
--cms-pages Apply dummy content to CMS Pages (content, meta description)
--customers Apply dummy content to customers (Last name, address, email, password)
--products Apply dummy content to products (description)
--users Apply dummy content to users (Last name, email)

List of options

Option Value Description
--dummy-content-text String Used as dummy text content. Defaults to 'Lorem ipsum.'
--dummy-content-password String Used as dummy text content. Defaults to 'lorem42'
--dummy-content-email String Used as dummy email content. Defaults to 'lorem.ipsum.%1$s@test.localhost'
--dummy-content-url String Used as dummy url content. Defaults to 'https://lor.emips.um/foo/bar/'
--dummy-content-phone String Used as dummy phone content. Defaults to '+49 (0) 600 987 654 32'
--dummy-content-image-path String Used as dummy image content. Defaults to './assets/dummy_image.png'

How to apply custom code

An event is triggered, called aid_content_fuzzyfyr_event. Listening to this event, expect the following parameters in the Observer data:, (*13)

'configuration' => \AllInData\ContentFuzzyfyr\Model\Configuration

Content Export

The Content Fuzzyfyr Module for Magento® 2 provides an Magento® 2 CLI command aid:content:export to export an database dump with already fuzzyfied content for existing content (or only empty fields with the --only-empty flag)
switched with some defined default value:, (*14)

bin/magento aid:content:export [options]

Note: Running the code activates maintenance mode. The maintenance mode will be disabled, if the command has run successfully or erroneous and the maintenance mode has been disabled in the beginning. But it is recommended to check manually on production system after running the command., (*15)

List of flags

Option Description
--only-empty Use dummy content only if the original data is equal to empty
--categories Apply dummy content to categories (content, meta description)
--cms-blocks Apply dummy content to CMS Blocks (content)
--cms-pages Apply dummy content to CMS Pages (content, meta description)
--customers Apply dummy content to customers (Last name, address, email, password)
--products Apply dummy content to products (description)
--users Apply dummy content to users (Last name, email)

List of options

Option Value Description
--dummy-content-text String Used as dummy text content. Defaults to 'Lorem ipsum.'
--dummy-content-password String Used as dummy text content. Defaults to 'lorem42'
--dummy-content-email String Used as dummy email content. Defaults to 'lorem.ipsum.%1$s@test.localhost'
--dummy-content-url String Used as dummy url content. Defaults to 'https://lor.emips.um/foo/bar/'
--dummy-content-phone String Used as dummy phone content. Defaults to '+49 (0) 600 987 654 32'
--backup-output String Path where the database dump is placed. Defaults to './var/backups/'

How to apply custom code

An event is triggered, called aid_content_export_event. Listening to this event, expect the following parameters in the Observer data:, (*16)

'configuration' => \AllInData\ContentFuzzyfyr\Model\Configuration

Administration

Content Export

The Content Fuzzyfyr Module for Magento® 2 extends the Magento® 2 administration backup area with an additional option to trigger the export of a GDPR compliant database dump. The database dump will have fuzzyfied customers and user data., (*17)

Navigate through the main navigation and selecting System > Backup:, (*18)

alt text, (*19)

The backup area is extended by the new button GDPR conform Database Backup (Content Fuzzyfyr):, (*20)

alt text, (*21)

By clicking on this button, a wizard is opened to configure the backup - mainly the name of the backup file:, (*22)

alt text, (*23)

If the wizard is confirmed, the GDPR compliant backup will be created and visibile in the existing backup list:, (*24)

alt text, (*25)

Contribution

Feel free to contribute to this module by reporting issues or create some pull requests for improvements., (*26)

License

The Content Fuzzyfyr Module for Magento® 2 is released under the Apache 2.0 license., (*27)

The Versions

25/07 2018

dev-master

9999999-dev

The Content Fuzzyfyr module for Magento2 fills up empty content fields - and if needed - switches real content with dummy content. This is for development purposes, e.g. save time to prepare test data and being compliant to GDPR.

  Sources   Download

Apache-2.0

The Requires

  • php ~5.6.5|7.0.2|7.0.4|~7.0.6|~7.1.0
  • magento/module-catalog ~100.1|~101.0|~102.0
  • magento/module-customer ~100.1|~101.0
  • magento/module-user ~100.1|~101.0
  • magento/module-cms ~100.1|~101.0|~102.0

 

The Development Requires

25/07 2018

1.6.0

1.6.0.0

The Content Fuzzyfyr module for Magento2 fills up empty content fields - and if needed - switches real content with dummy content. This is for development purposes, e.g. save time to prepare test data and being compliant to GDPR.

  Sources   Download

Apache-2.0

The Requires

  • php ~5.6.5|7.0.2|7.0.4|~7.0.6|~7.1.0
  • magento/module-catalog ~100.1|~101.0|~102.0
  • magento/module-cms ~100.1|~101.0|~102.0
  • magento/module-customer ~100.1|~101.0
  • magento/module-user ~100.1|~101.0

 

The Development Requires

21/07 2018

1.5.0

1.5.0.0

The Content Fuzzyfyr module for Magento2 fills up empty content fields - and if needed - switches real content with dummy content. This is for development purposes, e.g. save time to prepare test data and being compliant to GDPR.

  Sources   Download

Apache-2.0

The Requires

  • php ~5.6.5|7.0.2|7.0.4|~7.0.6|~7.1.0
  • magento/module-catalog ~100.1|~101.0|~102.0
  • magento/module-cms ~100.1|~101.0|~102.0
  • magento/module-customer ~100.1|~101.0
  • magento/module-user ~100.1|~101.0

 

The Development Requires

18/07 2018

1.4.0

1.4.0.0

The Content Fuzzyfyr module for Magento2 fills up empty content fields - and if needed - switches real content with dummy content. This is for development purposes, e.g. save time to prepare test data and being compliant to GDPR.

  Sources   Download

Apache-2.0

The Requires

  • php ~5.6.5|7.0.2|7.0.4|~7.0.6|~7.1.0
  • magento/module-catalog ~100.1|~101.0|~102.0
  • magento/module-cms ~100.1|~101.0|~102.0
  • magento/module-customer ~100.1|~101.0
  • magento/module-user ~100.1|~101.0

 

The Development Requires

15/07 2018

1.3.0

1.3.0.0

The Content Fuzzyfyr module for Magento2 fills up empty content fields - and if needed - switches real content with dummy content. This is for development purposes, e.g. save time to prepare test data and matching GDPR restrictions.

  Sources   Download

Apache-2.0

The Requires

  • php ~5.6.5|7.0.2|7.0.4|~7.0.6|~7.1.0
  • magento/module-catalog ~100.1|~101.0|~102.0
  • magento/module-cms ~100.1|~101.0|~102.0
  • magento/module-customer ~100.1|~101.0
  • magento/module-user ~100.1|~101.0

 

The Development Requires

14/07 2018

1.2.0

1.2.0.0

The Content Fuzzyfyr module for Magento2 fills up empty content fields - and if needed - switches real content with dummy content. This is for development purposes, e.g. save time to prepare test data and matching GDPR restrictions.

  Sources   Download

Apache-2.0

The Requires

  • php ~5.6.5|7.0.2|7.0.4|~7.0.6|~7.1.0
  • magento/module-catalog ~100.1|~101.0|~102.0
  • magento/module-cms ~100.1|~101.0|~102.0
  • magento/module-customer ~100.1|~101.0
  • magento/module-user ~100.1|~101.0

 

The Development Requires

13/07 2018

1.1.0

1.1.0.0

The Content Fuzzyfyr module for Magento2 fills up empty content fields - and if needed - switches real content with dummy content. This is for development purposes, e.g. save time to prepare test data and matching GDPR restrictions.

  Sources   Download

Apache-2.0

The Requires

  • php ~5.6.5|7.0.2|7.0.4|~7.0.6|~7.1.0
  • magento/module-catalog ~100.1|~101.0|~102.0
  • magento/module-cms ~100.1|~101.0|~102.0
  • magento/module-customer ~100.1|~101.0
  • magento/module-user ~100.1|~101.0

 

The Development Requires

11/07 2018

1.0.1

1.0.1.0

The Content Fuzzyfyr module for Magento2 fills up empty content fields - and if needed - switches real content with dummy content. This is for development purposes, e.g. save time to prepare test data and matching GDPR restrictions.

  Sources   Download

Apache-2.0

The Requires

  • php ~5.6.5|7.0.2|7.0.4|~7.0.6|~7.1.0
  • magento/module-catalog ~100.1|~101.0|~102.0
  • magento/module-customer ~100.1|~101.0
  • magento/module-user ~100.1|~101.0

 

The Development Requires

09/07 2018

1.0.0

1.0.0.0

The Content Fuzzyfyr module for Magento2 fills up empty content fields - and if needed - switches real content with dummy content. This is for development purposes, e.g. save time to prepare test data and matching GDPR restrictions.

  Sources   Download

Apache-2.0

The Requires

  • php ~5.6.5|7.0.2|7.0.4|~7.0.6|~7.1.0
  • magento/module-catalog ~100.1|~101.0|~102.0
  • magento/module-customer ~100.1|~101.0
  • magento/module-user ~100.1|~101.0

 

The Development Requires