PHPackages                             mysportconnect/parsley-server-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. mysportconnect/parsley-server-bundle

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

mysportconnect/parsley-server-bundle
====================================

Allow to get Symfony 2 form server-side validation on a field type

92572[1 issues](https://github.com/mySportConnect/ParsleyjsServerBundle/issues)PHP

Since Jan 8Pushed 12y ago2 watchersCompare

[ Source](https://github.com/mySportConnect/ParsleyjsServerBundle)[ Packagist](https://packagist.org/packages/mysportconnect/parsley-server-bundle)[ RSS](/packages/mysportconnect-parsley-server-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

ParlseyjsServerBundle
=====================

[](#parlseyjsserverbundle)

A symfony 2 bundle integration of wonderful client-side javascript library [Parsley.js](https://github.com/guillaumepotier/Parsley.js) by @guillaumepotier.

The ParsleyjsServerBundle allows to get Symfony 2 form server-side validation on a field type via form validations.

It uses the data-remote attribute of client-side Parsley.js library. For more informations see [here](http://parsleyjs.org/documentation.html#basic-constraints).

Add ParsleyJsServerBundle to your project:

```
$ php composer.phar require mysportconnect/parsley-server-bundle
$ php composer.phar update
```

Add the bundle to your AppKernel.php file:

```
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // Your bundles
            new Parsley\ServerBundle\ParsleyServerBundle()
        );
```

Add configuration to your config.yml file. As ParsleyJsServerBundle depends on your form validations, not your entities, you must provide information on each form there is a field you want to "remote-validate". You doing this by providing validation\_groups for your forms:

```
parsley_server:
    validations:
        fos_user_registration: { group: [Registration], translation_domain: validators}
        fos_user_profile: { group: [Profile], translation_domain: validators}
```

Then add routing information to your routing.yml file:

```
parsley:
    resource: "@ParsleyServerBundle/Resources/config/routing.yml"
    prefix: /parsley
```

Finally enable Parsley validation on the field you want to like this:

```
    public function buildForm ( FormBuilderInterface $builder , array $options )
    {
        $builder
            -> add ( 'username' , null , array (
                                        "parsley" => true
            ) )
    }
```

News
----

[](#news)

IRC on irc.freenode.net #mysportconnect

License
-------

[](#license)

ParsleyjsServerBundle is licensed under the MIT license (see LICENSE.md file).

Author
------

[](#author)

mySportConnect, Alain Bangoula (aka comensee), Rémi Barbe (aka Remiii) and contributors.

Bug report and Help
-------------------

[](#bug-report-and-help)

For bug reports open a Github ticket. Patches gratefully accepted. :-)

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63% 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/a67f822f89c7c5a42238896f20d5bfb9e33930a84aec40bdaa2eefda9fdaad1b?d=identicon)[comensee](/maintainers/comensee)

![](https://avatars.githubusercontent.com/u/659383?v=4)[Rémi Barbe](/maintainers/Remiii)[@Remiii](https://github.com/Remiii)

---

Top Contributors

[![comensee](https://avatars.githubusercontent.com/u/776301?v=4)](https://github.com/comensee "comensee (34 commits)")[![Remiii](https://avatars.githubusercontent.com/u/659383?v=4)](https://github.com/Remiii "Remiii (20 commits)")

### Embed Badge

![Health badge](/badges/mysportconnect-parsley-server-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/mysportconnect-parsley-server-bundle/health.svg)](https://phpackages.com/packages/mysportconnect-parsley-server-bundle)
```

###  Alternatives

[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

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