2017 © Pedro Peláez
 

laravel-library laravel-countries

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries.

image

yayann/laravel-countries

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries.

  • Tuesday, January 27, 2015
  • by yayann
  • Repository
  • 1 Watchers
  • 1 Stars
  • 615 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 151 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Laravel Countries

Total Downloads Latest Stable Version Latest Unstable Version, (*1)

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries., (*2)

Installation

Add webpatser/laravel-countries to composer.json., (*3)

"webpatser/laravel-countries": "dev-master"

Run composer update to pull down the latest version of Country List., (*4)

Edit app/config/app.php and add the provider and filter, (*5)

'providers' => array(
    'Webpatser\Countries\CountriesServiceProvider',
)

Now add the alias., (*6)

'aliases' => array(
    'Countries' => 'Webpatser\Countries\CountriesFacade',
)

Model

You can start by publishing the configuration. This is an optional step, it contains the table name and does not need to be altered. If the default name countries suits you, leave it. Otherwise run the following command, (*7)

$ php artisan config:publish webpatser/laravel-countries

Next generate the migration file:, (*8)

$ php artisan countries:migration

It will generate the <timestamp>_setup_countries_table.php migration and the CountriesSeeder.php seeder. To make sure the data is seeded insert the following code in the seeds/DatabaseSeeder.php, (*9)

//Seed the countries
$this->call('CountriesSeeder');
$this->command->info('Seeded the countries!'); 

You may now run it with the artisan migrate command:, (*10)

$ php artisan migrate --seed

After running this command the filled countries table will be available, (*11)

The Versions

27/01 2015

dev-master

9999999-dev https://github.com/yayann/laravel-countries

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Paul Kievits

laravel countries iso_3166_2 iso_3166_3

27/01 2015

1.2.2

1.2.2.0 https://github.com/yayann/laravel-countries

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Paul Kievits

laravel countries iso_3166_2 iso_3166_3

27/01 2015

1.2.1

1.2.1.0 https://github.com/yayann/laravel-countries

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Paul Kievits

laravel countries iso_3166_2 iso_3166_3

19/08 2014

dev-develop

dev-develop https://github.com/webpatser/laravel-countries

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Paul Kievits

laravel countries iso_3166_2 iso_3166_3

24/07 2014

1.2

1.2.0.0 https://github.com/webpatser/laravel-countries

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Paul Kievits

laravel countries iso_3166_2 iso_3166_3

27/06 2014

1.1

1.1.0.0 https://github.com/webpatser/laravel-countries

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Paul Kievits

laravel countries iso_3166_2 iso_3166_3