fourlabs/world-universities-bundle
Composer 安装命令:
composer require fourlabs/world-universities-bundle
包简介
Symfony ChoiceType listing the world's universities
README 文档
README
Symfony ChoiceType listing the world's universities
Installation
Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest version of this bundle:
$ composer require fourlabs/world-universities-bundle
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Enable the Bundle
Then, enable the bundle by adding the following line in the app/AppKernel.php file of your project:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new FL\WorldUniversitiesBundle\FlWorldUniversitiesBundle(), ); }
Usage
Example
$builder->add('university', WorldUniversitiesType::class, [ 'required' => true, ]);
Configuration
Example of configuration in app/config.yml:
fl_world_universities: path: "%kernel.root_dir%/Resources/WorldUniversities" source: "https://raw.githubusercontent.com/endSly/world-universities-csv/master/world-universities.csv"
Download / update list of universities
php bin/console fl:world-universities:update
License
统计信息
- 总下载量: 124
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-04-19