PHP code example of elementareteilchen / unduplicator

1. Go to this page and download the library: Download elementareteilchen/unduplicator 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/ */

    

elementareteilchen / unduplicator example snippets

sh
php vendor/bin/typo3 scheduler:run --task=<UID>
sh
# dry-run:
php vendor/bin/typo3 unduplicate:sysfile --update-refindex --dry-run
# for real
php vendor/bin/typo3 unduplicate:sysfile -n

php vendor/bin/typo3 referenceindex:update

php vendor/bin/typo3 unduplicate:sysfile --storage <storage> --identifier <"identifier">

# For example:
php vendor/bin/typo3 unduplicate:sysfile  --storage 1 --identifier "/user_upload/duplicate.jpg"

php vendor/bin/typo3 unduplicate:sysfile --meta-fields "description, caption"