2017 © Pedro Peláez
 

library abuse-keyword-purifier

image

nexuslinkservices/abuse-keyword-purifier

  • Friday, March 24, 2017
  • by nexuslinkservices
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

abuse-keyword-purifier

Replace or remove abuse keywords from content., (*1)

Latest Version Software License Scrutinizer Code Quality Build Status, (*2)

Installation

If you use composer, you can add this package by running, (*3)

composer require galiteintechnologies/abuse-keyword-purifier

Usage

Create configuration file with bad words list and character with which you want to replace bad words. For ex., (*4)

profanities:
    replace_with: '*'
    bad_words: ['abuser', 'bitch', 'bitcher']

If you want to remove bad words from content then just leave replace_with field with balnk value for ex. replace_with: '', (*5)

If you do not create configuration file then it will use provided by package which includes all the bad words list., (*6)

Example usage:, (*7)

<?php

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);

Output

I do not want to use such bad word like *******. Another bad word I want to remove is *****.

CONTRIBUTING:

Pull requests are always welcome., (*8)

The Versions

24/03 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=5.6.2

 

The Development Requires

by Nexuslink Services

17/09 2016

v1.2.2

1.2.2.0

  Sources   Download

MIT

The Requires

  • php >=5.6.2

 

The Development Requires

by Nexuslink Services

17/09 2016

v1.2.1

1.2.1.0

  Sources   Download

MIT

The Requires

  • php >=5.6.2

 

The Development Requires

by Nexuslink Services

16/09 2016

v1.1.1

1.1.1.0

  Sources   Download

MIT

The Requires

  • php >=5.6.2

 

The Development Requires

by Nexuslink Services

16/09 2016

v1.0.1

1.0.1.0

  Sources   Download

MIT

The Requires

  • php >=5.6.2

 

The Development Requires

by Nexuslink Services

06/09 2016

v1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • php >=5.6.2

 

The Development Requires

by Nexuslink Services