PHPackages                             powderblue/sf-continent-country-type - 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. powderblue/sf-continent-country-type

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

powderblue/sf-continent-country-type
====================================

Symfony form-type that displays a list of the countries of the world grouped by continent

v4.0.0(1y ago)0134[1 PRs](https://github.com/powderblue/sf-continent-country-type/pulls)MITPHPPHP ^8.2.23

Since Mar 30Pushed 1y ago2 watchersCompare

[ Source](https://github.com/powderblue/sf-continent-country-type)[ Packagist](https://packagist.org/packages/powderblue/sf-continent-country-type)[ RSS](/packages/powderblue-sf-continent-country-type/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (11)Versions (15)Used By (0)

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
-----------

[](#screenshots)

(Select2 has been used to render the dropdown lists in the following examples.)

Example of a dropdown with countries grouped by continent: [![dropdown with countries grouped by continent](src/Resources/doc/img/grouped.png)](src/Resources/doc/img/grouped.png)

Example of a 'simple' country dropdown: [![simple country dropdown](src/Resources/doc/img/not-grouped.png)](src/Resources/doc/img/not-grouped.png)

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

[](#installation)

- Run `composer require powderblue/sf-continent-country-type`
- Update your project `app/AppKernel.php` file and add the bundle to the `$bundles` array:

```
$bundles = [
    // ...
    new PowderBlue\SfContinentCountryTypeBundle\PowderBlueSfContinentCountryTypeBundle(),
];
```

Usage
-----

[](#usage)

In the `buildForm` method of a form-type class, specify `ContinentCountryType::class` as the type.

```
use PowderBlue\SfContinentCountryTypeBundle\Form\Type\ContinentCountryType;

// ...

$builder
    // ...
    ->add('country', ContinentCountryType::class, [
        'label' => 'Country',
        'attr' => [
            'placeholder' => 'Country',
        ],
    ])
;
```

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

[](#configuration)

Below you can find a reference of all configuration options with their default values:

```
# config.yml

powder_blue_sf_continent_country_type:
    # The path of the file containing the countries (and continents) that should appear in the dropdown
    file: "%bundle_root_dir%/Resources/data/continent_country.csv"

    # Group the countries by continent in the dropdown?
    group_by_continent: true

    # The ID of the service used to parse the countries file.  It should implement `...\Provider\ContinentCountryProviderInterface`.
    provider: powder_blue_sf_continent_country_type.provider.continent_country_csv_file
```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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.

###  Release Activity

Cadence

Every ~302 days

Recently: every ~377 days

Total

10

Last Release

607d ago

Major Versions

v1.0.0 → v2.0.02017-11-02

v2.1.1 → v3.0.02024-04-02

v3.0.0 → v4.0.02024-09-13

PHP version history (2 changes)v3.0.0PHP ^8.3

v4.0.0PHP ^8.2.23

### Community

Maintainers

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

---

Top Contributors

[![RichAtPowderBlue](https://avatars.githubusercontent.com/u/47561048?v=4)](https://github.com/RichAtPowderBlue "RichAtPowderBlue (7 commits)")[![danbettles](https://avatars.githubusercontent.com/u/736672?v=4)](https://github.com/danbettles "danbettles (5 commits)")[![adumitrache](https://avatars.githubusercontent.com/u/25303335?v=4)](https://github.com/adumitrache "adumitrache (3 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/powderblue-sf-continent-country-type/health.svg)

```
[![Health](https://phpackages.com/badges/powderblue-sf-continent-country-type/health.svg)](https://phpackages.com/packages/powderblue-sf-continent-country-type)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M310](/packages/easycorp-easyadmin-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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