1. Go to this page and download the library: Download ridwanpr/string-masker 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/ */
use Ridwan\StringMasker\ContentMasker;
$message = "My bank account number is 12345678 and my password is secret.";
$maskedMessage = ContentMasker::maskContent($message, [
'mask' => '*',
'words' => ['bank account', 'password'],
]);
echo $maskedMessage;
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.