PHP code example of libeo / lbo_anonymizer

1. Go to this page and download the library: Download libeo/lbo_anonymizer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

libeo / lbo_anonymizer example snippets


$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['lbo_anonymizer'] = [
    'DB' => [
        'Default' => [
            'sys_history' => [
                'operation' => 'truncate',
            ],
            'fe_users' => [
                'operation' => 'update',
                'fields' => [
                    'first_name' => [
                        'fakerFunction' => 'firstName',
                    ],
                    'last_name' => [
                        'fakerFunction' => 'lastName',
                    ],
                    'email' => [
                        'fakerFunction' => 'email',
                    ],
                    'lastlogin' => [
                        'fakerFunction' => 'unixTime',
                    ],
                    'address' => [
                        'fakerFunction' => 'address',
                    ],
                    'telephone' => [
                        'fakerFunction' => 'phoneNumber',
                    ],
                    'username' => [
                        'fakerFunction' => 'userName',
                    ],
                ]
            ],
        ]
    ],
];