PHPackages                             tuxone/validation-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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. tuxone/validation-bundle

ActiveSymfony-bundle[Validation &amp; Sanitization](/categories/validation)

tuxone/validation-bundle
========================

Validators for Symfony2

1.0.0(9y ago)525.8k4[1 issues](https://github.com/tuxone/ValidationBundle/issues)[1 PRs](https://github.com/tuxone/ValidationBundle/pulls)MITPHPPHP &gt;=5.3.3

Since Dec 8Pushed 6y ago2 watchersCompare

[ Source](https://github.com/tuxone/ValidationBundle)[ Packagist](https://packagist.org/packages/tuxone/validation-bundle)[ Docs](https://github.com/tuxone/ValidationBundle)[ RSS](/packages/tuxone-validation-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

ValidationBundle
================

[](#validationbundle)

[![Travis](https://camo.githubusercontent.com/9b0baac3eadd389f8b2948e26d341fcd71a4324ffb11e49a986b1b0a019a92ec/68747470733a2f2f6170692e7472617669732d63692e6f72672f7475786f6e652f56616c69646174696f6e42756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/tuxone/ValidationBundle)

Right now this Symfony2 bundle includes only bad words validation based on blacklists. The english blacklist provided comes from [here](http://photos.ramseym.com/pictures/blog/badwords_for_facebook_pages.txt).

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

[](#installation)

Use Composer to install: `tuxone/validation-bundle`.

In your `composer.json` you should have:

```
    {
        "require": {
            "tuxone/validation-bundle": "dev-master"
        }
    }
```

Configuration
-------------

[](#configuration)

### In config.yml

[](#in-configyml)

```
tux_one_validation:
    dictionary_file_path: /path/to/custom/dictionary.txt

```

"dictionary.txt" is a custom dictionary that contains a list of bad word. This configuration is optionally. If setted, the bundle works with your custom bad word list, otherwise it will work with the default bad word list.

Usage
-----

[](#usage)

If **TuxOneValidationBundle** has been added to the project, its validators can be used just like every other Symfony2 validator.

### Using with YAML

[](#using-with-yaml)

```
# src/Acme/DemoBundle/Resources/config/validation.yml
Acme\DemoBundle\Entity\AcmeMessage:
  properties:
    text:
      - TuxOne\ValidationBundle\Validator\Constraints\NotContainsBadWords: ~

```

### Using with Annotations

[](#using-with-annotations)

```
// src/Acme/DemoBundle/Entity/AcmeMessage.php
use Symfony\Component\Validator\Constraints as Assert;
use TuxOne\ValidationBundle\Validator\Constraints as TuxOneAssert;

class AcmeEntity
{
	// ...

	/**
	 * @Assert\NotBlank
	 * @TuxOneAssert\NotContainsBadWords()
	 */
	protected $text;

	// ...
}

```

License
-------

[](#license)

### The MIT License (MIT)

[](#the-mit-license-mit)

Copyright (c) 2013 Alessandro Loffredo

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3491d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f64a22e248b9d17eba26bfa413ccfde6ccdaadc7f33f74e8e4fbe276f742273b?d=identicon)[cyberalex](/maintainers/cyberalex)

---

Top Contributors

[![antkowiakit](https://avatars.githubusercontent.com/u/2530655?v=4)](https://github.com/antkowiakit "antkowiakit (2 commits)")[![danieledangeli](https://avatars.githubusercontent.com/u/3957293?v=4)](https://github.com/danieledangeli "danieledangeli (2 commits)")[![mfsirameshk](https://avatars.githubusercontent.com/u/5749709?v=4)](https://github.com/mfsirameshk "mfsirameshk (2 commits)")

---

Tags

validationwordsbad

### Embed Badge

![Health badge](/badges/tuxone-validation-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/tuxone-validation-bundle/health.svg)](https://phpackages.com/packages/tuxone-validation-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M526](/packages/shopware-core)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

51390.8k3](/packages/web-auth-webauthn-framework)[aeliot/todo-registrar

Register TODOs from source code in issue tracker

153.0k](/packages/aeliot-todo-registrar)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
