2017 © Pedro Peláez
 

laravel-package laravel-id-countries

Laravel ID Countries is a package for Laravel to supply all countries data to table countries including country name, iso country code, capital, currency, and calling code.

image

ferdirn/laravel-id-countries

Laravel ID Countries is a package for Laravel to supply all countries data to table countries including country name, iso country code, capital, currency, and calling code.

  • Tuesday, November 18, 2014
  • by ferdirn
  • Repository
  • 3 Watchers
  • 5 Stars
  • 324 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

Laravel ID Countries

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

Laravel ID Countries is a package for Laravel to supply all countries data to table countries including country name, iso country code, capital, currency, and calling code., (*2)

Installation

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

"ferdirn/laravel-id-countries": "dev-master"

or in console type command, (*4)

composer require ferdirn/laravel-id-countries:dev-master

Run composer update to pull down the latest version of laravel packages., (*5)

Edit app/config/app.php file and add to providers, (*6)

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

also add to 'aliases', (*7)

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

Model

If you want to edit the configuration then publish the config. This is an optional step and unrecommended to do, it will show the table name and you do not need to alter it if you do not know what you are doing. The default table name is countries, if it suits you, leave it. But if you know what you are doing, you can run the following command, (*8)

$ php artisan config:publish ferdirn/laravel-id-countries

Then you need to generate the migration file. Run the following command:, (*9)

$ php artisan countries:migration

This process will generate <timestamp>_create_countries_table.php migration file and a CountriesSeeder.php seed file., (*10)

Insert the following code in the seeds/DatabaseSeeder.php, (*11)

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

Finally, you can run the artisan migrate command with seed option to include the seed data:, (*12)

$ php artisan migrate --seed

Now you have a table 'countries' with all country data inside the table. Congratulation!, (*13)

The Versions

18/11 2014

dev-master

9999999-dev https://github.com/ferdirn/laravel-id-countries

Laravel ID Countries is a package for Laravel to supply all countries data to table countries including country name, iso country code, capital, currency, and calling code.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel currency countries capital citizenship

17/11 2014

v2.0

2.0.0.0 https://github.com/ferdirn/laravel-id-countries

Laravel ID Countries is a package for Laravel to supply all countries data to table countries including country name, iso country code, capital, currency, and calling code.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel currency countries capital citizenship

11/11 2014

v1.1

1.1.0.0 https://github.com/ferdirn/laravel-id-countries

Laravel ID Countries is a package for Laravel to supply all countries data to table countries including country name, iso country code, capital, currency, and calling code.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel currency countries capital citizenship

10/11 2014

v1.0

1.0.0.0 https://github.com/ferdirn/laravel-id-countries

Laravel ID Countries is a package for Laravel to supply all countries data to table countries including country name, iso country code, capital, currency, and calling code.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel currency countries capital citizenship