PHPackages                             vangrg/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. vangrg/profanity-bundle

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

vangrg/profanity-bundle
=======================

Checker for bad words.

v1.1.6(7y ago)43.6k7[1 issues](https://github.com/ivan-griga/ProfanityBundle/issues)[1 PRs](https://github.com/ivan-griga/ProfanityBundle/pulls)MITPHPPHP ^7.1

Since Jun 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ivan-griga/ProfanityBundle)[ Packagist](https://packagist.org/packages/vangrg/profanity-bundle)[ RSS](/packages/vangrg-profanity-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (5)Versions (15)Used By (0)

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)

```
