承接 powderblue/sf-continent-country-type 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

powderblue/sf-continent-country-type

Composer 安装命令:

composer require powderblue/sf-continent-country-type

包简介

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

README 文档

README

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: dropdown with countries grouped by continent

Example of a 'simple' country dropdown: simple country dropdown

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

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

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

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-03-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固