PHPackages                             toa/validator-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. toa/validator-bundle

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

toa/validator-bundle
====================

Validator Bundle for Symfony2

01.9k1PHP

Since Dec 13Pushed 12y ago1 watchersCompare

[ Source](https://github.com/toaotc/ValidatorBundle)[ Packagist](https://packagist.org/packages/toa/validator-bundle)[ RSS](/packages/toa-validator-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

ToaValidatorBundle
==================

[](#toavalidatorbundle)

This bundle integrates [ToaValidatorComponent](https://github.com/toaotc/Validator) into Symfony ~2.1 projects.

[![Build Status](https://camo.githubusercontent.com/b8f9368f31d0cd2357ed46f88af171a08916332abf1dccb8ffce52b4f4ce3f63/68747470733a2f2f7472617669732d63692e6f72672f746f616f74632f56616c696461746f7242756e646c652e706e67)](https://travis-ci.org/toaotc/ValidatorBundle)[![Code Coverage](https://camo.githubusercontent.com/fdfefc398fa2bc6fc3eaf95d05dbffb0d335c926693dbe94b33f7e3ae9577847/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f746f616f74632f56616c696461746f7242756e646c652f6261646765732f636f7665726167652e706e673f733d39373830333262336439363133396131383836356435636538336162306664313361373539373037)](https://scrutinizer-ci.com/g/toaotc/ValidatorBundle/)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/f2d8b2134e12f88cd3a32ad33120aeed93b641294d40062d1432746f020b62db/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f746f616f74632f56616c696461746f7242756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f733d63376630323965346165626536646662366364646563373036336332303333633165333065316238)](https://scrutinizer-ci.com/g/toaotc/ValidatorBundle/)[![Dependency Status](https://camo.githubusercontent.com/20da62a32863cf32b2f8092a6408ababeba4fc5eff02e8a948741f29906552dc/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3532353963656637363332626163346666653030313231322f62616467652e706e67)](https://www.versioneye.com/user/projects/5259cef7632bac4ffe001212)

[![SensioLabsInsight](https://camo.githubusercontent.com/bd2acf794c53ad4cc4d39b13feb999384da7775d00a6c18282ec18c6746322d0/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f32363336353838372d636566382d343635372d393866352d3763336662386561646432382f6d696e692e706e67)](https://insight.sensiolabs.com/projects/26365887-cef8-4657-98f5-7c3fb8eadd28)[![Latest Stable Version](https://camo.githubusercontent.com/1a1a8b85a8fc3c84e936d2fefd2f3d5a81b51c91508e0affabf6a6a5a3d91144/68747470733a2f2f706f7365722e707567782e6f72672f746f612f76616c696461746f722d62756e646c652f762f737461626c652e706e67 "Latest Stable Version")](https://packagist.org/packages/toa/validator-bundle)[![Total Downloads](https://camo.githubusercontent.com/35c6906dbcb30395af506119e7ddd56b6daea3f6f6e6df72bce84b17f5ca0eef/68747470733a2f2f706f7365722e707567782e6f72672f746f612f76616c696461746f722d62756e646c652f646f776e6c6f6164732e706e67 "Total Downloads")](https://packagist.org/packages/toa/validator-bundle)

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

[](#installation)

Add this bundle to your `composer.json` file:

```
{
    "require": {
        "toa/validator-bundle": "dev-master"
    }
}

```

Register the bundle in `app/AppKernel.php`:

```
// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Toa\Bundle\ValidatorBundle\ToaValidatorBundle(),
    );
}

```

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

[](#configuration)

Enable the bundle's constraints in `app/config/config.yml`:

```
# app/config/config.yml
toa_validator:
    csv: true
    audio: true
    video: true

```

If you set `audio: true` or `video: true` you can configure the paths to the ffmpeg/ffprobe binaries in `app/config/parameters.yml`:

```
parameters:
    toa_validator.helper.ffmpeg.binary_ffmpeg:  /usr/bin/ffmpeg  #default
    toa_validator.helper.ffmpeg.binary_ffprobe: /usr/bin/ffprobe #default

```

Credits
-------

[](#credits)

The [ffmpeg.xml](Resources/config/ffmpeg.xml) is heavily inspired by [Symfony ffmpeg bundle](https://github.com/pulse00/ffmpeg-bundle).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

### Community

Maintainers

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

---

Top Contributors

[![toaotc](https://avatars.githubusercontent.com/u/871030?v=4)](https://github.com/toaotc "toaotc (18 commits)")

### Embed Badge

![Health badge](/badges/toa-validator-bundle/health.svg)

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

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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