2017 © Pedro Peláez
 

library world-universities-bundle

Symfony ChoiceType listing the world's universities

image

fourlabs/world-universities-bundle

Symfony ChoiceType listing the world's universities

  • Thursday, April 20, 2017
  • by fourlabsldn
  • Repository
  • 1 Watchers
  • 0 Stars
  • 113 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

World Universities Bundle

Symfony ChoiceType listing the world's universities, (*1)

StyleCI GitHub license, (*2)

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:, (*3)

``` bash $ composer require fourlabs/world-universities-bundle, (*4)


This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md) 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 <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new FL\WorldUniversitiesBundle\FlWorldUniversitiesBundle(), ); }

Usage

Example

``` php $builder->add('university', WorldUniversitiesType::class, [ 'required' => true, ]);, (*5)


### Configuration Example of configuration in `app/config.yml`: ```yaml 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

MIT, (*6)

The Versions