1. Go to this page and download the library: Download ductran/sensitive-filter library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?phprequire_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ductran / sensitive-filter example snippets
use \Ductran\SensitiveFilter\Facades\SensitiveFilter;
$filter = new \Ductran\SensitiveFilter\SensitiveFilter();
$filter->addProcessor(new \Ductran\SensitiveFilter\EmailProcessor());
echo $filter->filter('duc@gmail.com adasd test@gmail.com');
$filter = new \Ductran\SensitiveFilter\SensitiveFilter();
$filter->addProcessor(new \Ductran\SensitiveFilter\IdCardProcessor());
echo $filter->filter('dadads2478-8339-3242-2423dsdsa2478-8339-3242-2424');