2017 © Pedro Peláez
 

library country

Sun Country is the package that helps you to get the country name & dialing code by the country ISO 3166-1 Alpha-2 code.

image

sun/country

Sun Country is the package that helps you to get the country name & dialing code by the country ISO 3166-1 Alpha-2 code.

  • Tuesday, January 10, 2017
  • by IftekherSunny
  • Repository
  • 2 Watchers
  • 10 Stars
  • 6,799 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 3 % Grown

The README.md

Sun Country

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

Sun Country is the package that helps you to get country name and dialing code by the country ISO 3166-1 Alpha-2 code., (*2)

Installation Process

Just copy Country folder somewhere into your project directory. Then include Sun Country autoload file., (*3)

require_once('/path/to/Country/autoload.php');

Sun Country is also available via Composer/Packagist., (*4)

composer require sun/country

Basic Uses

Get all countries name and dialing code

$country = new Sun\Country;
$country->get();

Get a country name and dialing code

$country = new Sun\Country;
$country->get('BD');

Get multiple countries name and dialing code

$country = new Sun\Country;
$country->get(['BD', 'US']);

Get a country name and dialing code using Alpha 2 code as property

$country = new Sun\Country;
$country->bd;

Get a country name

$country = new Sun\Country;
$country->getName('BD');

Get a country dialing code

$country = new Sun\Country;
$country->getDialingCode('BD');

Get a country name using country geo ip address

$country = new Sun\Country;
$country->getCountryNameByGeoIp('203.202.251.42');

Integration In Laravel Framework

Add the ServiceProvider to the providers array in config/app.php, (*5)

Sun\Provider\CountryServiceProvider::class,

Add the facade to the aliases array in config/app.php, (*6)

'Country'   =>  Sun\Facade\CountryFacade::class,

Integration In Planet Framework

Add the provider in the config/provider.php file., (*7)

Sun\Provider\CountryProvider::class,

Add the alien in the config/alien.php file., (*8)

'Country'   =>  Sun\Alien\CountryAlien::class,

License

This package is licensed under the MIT License, (*9)

The Versions

10/01 2017

dev-master

9999999-dev

Sun Country is the package that helps you to get the country name & dialing code by the country ISO 3166-1 Alpha-2 code.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel php country sun country code planet planet country code sun country code laravel country laravel country code

10/01 2017

v1.3

1.3.0.0

Sun Country is the package that helps you to get the country name & dialing code by the country ISO 3166-1 Alpha-2 code.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel php country sun country code planet planet country code sun country code laravel country laravel country code

10/01 2017

v1.2

1.2.0.0

Sun Country is the package that helps you to get the country name & dialing code by the country ISO 3166-1 Alpha-2 code.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel php country sun country code planet planet country code sun country code laravel country laravel country code

21/08 2016

v1.1

1.1.0.0

Sun Country is the package that helps you to get the country name & dialing code by the country ISO 3166-1 Alpha-2 code.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel php country sun country code planet planet country code sun country code laravel country laravel country code

11/02 2016

v1.0

1.0.0.0

Sun Country is the package that helps you to get the country name & dialing code by the country ISO 3166-1 Alpha-2 code.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

laravel php country sun country code planet planet country code sun country code laravel country laravel country code