PHPackages                             choros/polish-extensions-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. choros/polish-extensions-bundle

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

choros/polish-extensions-bundle
===============================

Symfony2 Bundle for Polish validators: NIP, REGON, PESEL

0.3(13y ago)083MITPHPPHP &gt;=5.3.2

Since Aug 3Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Choros/TaveoPolishExtensionsBundle)[ Packagist](https://packagist.org/packages/choros/polish-extensions-bundle)[ Docs](http://github.com/taveo/TaveoPolishExtensionsBundle)[ RSS](/packages/choros-polish-extensions-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

TaveoPolishExtensionsBundle
===========================

[](#taveopolishextensionsbundle)

Symfony2 Bundle for Polish validators: NIP, REGON, PESEL

It has validation translations for pl, en, de.

Installation
============

[](#installation)

Bring in the vendor libraries
-----------------------------

[](#bring-in-the-vendor-libraries)

This can be done in two different ways:

**Method #1**) Use composer

```
"require": {
    "php": ">=5.3.2",
    "symfony/symfony": "2.1.*",
    "_others": "your other packages",

    "taveo/polish-extensions-bundle": "dev-master",
}

```

**Method #2**) Use git submodules

```
git submodule add git://github.com/taveo/TaveoPolishExtensionsBundle.git vendor/bundles/Taveo/PolishExtensionsBundle

```

Register the Taveo namespace
----------------------------

[](#register-the-taveo-namespace)

Only required, when using submodules.

```
// app/autoload.php
$loader->registerNamespaces(array(
    'Taveo'  => __DIR__.'/../vendor/bundles',
    // your other namespaces
));

```

Add PolishExtensionsBundle to your application kernel
-----------------------------------------------------

[](#add-polishextensionsbundle-to-your-application-kernel)

```
// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Taveo\PolishExtensionsBundle\TaveoPolishExtensionsBundle(),
        // ...
    );
}

```

Examples
========

[](#examples)

**\#1**) Annotations

```
