PHPackages                             damianociarla/select-city-form-field-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. damianociarla/select-city-form-field-bundle

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

damianociarla/select-city-form-field-bundle
===========================================

This Bundle provides a new form field that renders three select 'Country, Region, City' for Symfony2

v1.0.2(11y ago)101.9k2[2 issues](https://github.com/damianociarla/DCSSelectCityFormFieldBundle/issues)MITPHPPHP &gt;=5.3

Since Jan 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/damianociarla/DCSSelectCityFormFieldBundle)[ Packagist](https://packagist.org/packages/damianociarla/select-city-form-field-bundle)[ Docs](https://github.com/damianociarla/DCSSelectCityFormFieldBundle)[ RSS](/packages/damianociarla-select-city-form-field-bundle/feed)WikiDiscussions master Synced 2d ago

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

DCSSelectCityFormFieldBundle
============================

[](#dcsselectcityformfieldbundle)

The DCSSelectCityFormFieldBundle is a bundle for Symfony2 that adds a new form field type `select_city` that renders three selects (Country, Region, City) in your forms. Features include:

- Ajax support without the use of external libraries
- You can set a minimum security role to protect api
- At the submit of form you have a default object that represent the three select

1) Installation
---------------

[](#1-installation)

### A) Download and install DCSSelectCityFormFieldBundle

[](#a-download-and-install-dcsselectcityformfieldbundle)

To install DCSSelectCityFormFieldBundle run the following command

```
bash $ php composer.phar require damianociarla/select-city-form-field-bundle

```

### B) Enable the bundle

[](#b-enable-the-bundle)

To enable it add the bundle instance in the kernel:

```
