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:

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:
$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
powderblue/sf-continent-country-type 适用场景与选型建议
powderblue/sf-continent-country-type 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 15 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 03 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 powderblue/sf-continent-country-type 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 powderblue/sf-continent-country-type 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-30