PHP code example of nexuslinkservices / abuse-keyword-purifier

1. Go to this page and download the library: Download nexuslinkservices/abuse-keyword-purifier 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/ */

    

nexuslinkservices / abuse-keyword-purifier example snippets




use AbuseKeywordPurifier\ProfanityFilter;

$profanityFilter = new ProfanityFilter();

$content = "I do not want to use such bad word like bastard. Another bad word I want to remove is bitch.";
$result = $profanityFilter->filterProfanities($content);