Download the PHP package powderblue/sf-continent-country-type without Composer
On this page you can find all versions of the php package powderblue/sf-continent-country-type. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download powderblue/sf-continent-country-type
More information about powderblue/sf-continent-country-type
Files in powderblue/sf-continent-country-type
Package sf-continent-country-type
Short Description Symfony form-type that displays a list of the countries of the world grouped by continent
License MIT
Informations about the package sf-continent-country-type
sf-continent-country-type
A Symfony bundle that provides a new form-type called "ContinentCountryType". It's like Symfony's CountryType but allows developers to group countries by continent. The list of countries and continents that are displayed can be easily customised.
Screenshots
(Select2 has been used to render the dropdown lists in the following examples.)
Example of a dropdown with countries grouped by continent:
Example of a 'simple' country dropdown:
Installation
- Run
composer require powderblue/sf-continent-country-type - Update your project
app/AppKernel.phpfile and add the bundle to the$bundlesarray:
Usage
In the buildForm method of a form-type class, specify ContinentCountryType::class as the type.
Configuration
Below you can find a reference of all configuration options with their default values:
All versions of sf-continent-country-type with dependencies
symfony/config Version ^5.4|^6.4
symfony/dependency-injection Version ^5.4|^6.4
symfony/form Version ^5.4|^6.4
symfony/framework-bundle Version ^5.4|^6.4
symfony/http-foundation Version ^5.4|^6.4
symfony/http-kernel Version ^5.4|^6.4
symfony/intl Version ^5.4|^6.4
symfony/options-resolver Version ^5.4|^6.4