PHPackages                             hottomali/profanity-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. hottomali/profanity-bundle

ActiveSymfony-bundle[Search &amp; Filtering](/categories/search)

hottomali/profanity-bundle
==========================

Checker for bad words.

v1.1.6(7y ago)013MITPHPPHP ^7.1

Since Jun 16Pushed 5y agoCompare

[ Source](https://github.com/Hot-Tomali/ProfanityBundle)[ Packagist](https://packagist.org/packages/hottomali/profanity-bundle)[ RSS](/packages/hottomali-profanity-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (15)Used By (0)

**Note about fork**: This is a fork of [ivan-griga/ProfanityBundle](https://github.com/ivan-griga/ProfanityBundle), added for testing and upgrading this bundle to be compatible with Symfony 5. The intent is to merge this code with the original (if possible), once it is brought up to date. Please do not use this directly unless you are part of that update effort.

Profanity Filter Bundle
=======================

[](#profanity-filter-bundle)

A symfony bundle to test if a string has a profanity in it.

**Straight matching**Checks string for profanity as it is against list of bad words. E.g. badword

**Substitution**Checks string for profanity with characters substituted for each letter. E.g. bâdΨ0rd

**Obscured**Checks string for profanity obscured with punctuation between. E.g. b|a|d|w|o|r|d

**Combinations**Also works with combinations of the above. E.g. b|â|d|Ψ|0|rr|d

Installation
------------

[](#installation)

- Install this package via composer. ```
    php composer.phar require vangrg/profanity-bundle

    ```
- Add to your AppKernel.php: ```
    new Vangrg\ProfanityBundle\VangrgProfanityBundle(),

    ```
- If you want to use a database to store your profanities: ```
    php bin/console doctrine:schema:update --force

    ```
- For populate default profanities data: ```
    php bin/console vangrg:profanities:populate

    ```

Usage
-----

[](#usage)

### Default usage

[](#default-usage)

```
