2017 © Pedro Peláez
 

library laravel-countries

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries. Bug kudos to Christoph Kempen, on whose work this package is heavily based (webpatser/laravel-countries).

image

bhuvidya/laravel-countries

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries. Bug kudos to Christoph Kempen, on whose work this package is heavily based (webpatser/laravel-countries).

  • Sunday, February 11, 2018
  • by bhuvidya
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,742 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 43 % Grown

The README.md

Laravel Countries

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

Note I have now switched the semver versioning for my Laravel packages to "match" the latest supported Laravel version., (*2)

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

Big kudos to Christoph Kempen, on whose work this package is heavily based (https://github.com/webpatser/laravel-countries). I ended up doing so many little changes that I thought it best to start my own package. And this is the first package I have put together and added to Packagist etc, so I was keen to learn the whole process!, (*4)

Please note that this package was tested on Laravel 5.5 - I cannot guarantee it will work on earlier versions. Sorry., (*5)

Installation

Add bhuvidya/laravel-countries to your app:, (*6)

$ composer require "bhuvidya/laravel-countries"

If you're using Laravel 5.5, you don't have to edit app/config/app.php., (*7)

Otherwise, edit app/config/app.php and add the service provider:, (*8)

'providers' => [
    'Bhuvidya\Countries\CountriesServiceProvider',
]

Configuration

You can elect to manage your own configuration. This is an optional step, it only contains the table name and does not need to be altered. If the default table name countries suits you, leave it. Otherwise run the following command, (*9)

$ php artisan vendor:publish --provider='Bhuvidya\Countries\CountriesServiceProvider' --tag=config

The config file can then be found at config/countries.php., (*10)

Migrations

The service provider automatically adds the package's migrations to your app., (*11)

Seeding

There is a seeding module in the package. You can either run the seeder manually from the command line:, (*12)

$ php artisan db:seed --class='Bhuvidya\Countries\CountriesSeeder'

Otherwise you can add it to one of your app's database seeder files, probably database/seeds/DatabaseSeeder.php:, (*13)

use Bhuvidya\Countries\CountriesSeeder;

/**  
 * Run the database seeds.
 *    
 * @return void 
 */ 
public function run()
{        
    ...
    $this->call(CountriesSeeder::class);
    ...
}

The Versions

11/02 2018

dev-master

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

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries. Bug kudos to Christoph Kempen, on whose work this package is heavily based (webpatser/laravel-countries).

  Sources   Download

MIT

The Requires

 

by bhu Boue vidya

laravel countries iso_3166_2 iso_3166_3

11/02 2018

v1.0.3

1.0.3.0 https://github.com/bhuvidya/laravel-countries

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries. Bug kudos to Christoph Kempen, on whose work this package is heavily based (webpatser/laravel-countries).

  Sources   Download

MIT

The Requires

 

by bhu Boue vidya

laravel countries iso_3166_2 iso_3166_3

30/11 2017

v1.0.2

1.0.2.0 https://github.com/bhuvidya/laravel-countries

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries. Bug kudos to Christoph Kempen, on whose work this package is heavily based (webpatser/laravel-countries).

  Sources   Download

MIT

The Requires

 

by bhu Boue vidya

laravel countries iso_3166_2 iso_3166_3

30/11 2017

v1.0.1

1.0.1.0 https://github.com/bhuvidya/laravel-countries

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries. Bug kudos to Christoph Kempen, on whose work this package is heavily based (webpatser/laravel-countries).

  Sources   Download

MIT

The Requires

 

by bhu Boue vidya

laravel countries iso_3166_2 iso_3166_3

30/11 2017

v1.0.0

1.0.0.0 https://github.com/bhuvidya/laravel-countries

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries. Bug kudos to Christoph Kempen, on whose work this package is heavily based (webpatser/laravel-countries).

  Sources   Download

MIT

The Requires

 

by bhu Boue vidya

laravel countries iso_3166_2 iso_3166_3