2017 © Pedro Peláez
 

composer-plugin country-codes

Automatically updated country data containing ISO codes and English country names, powered by free MaxMind data.

image

brightnucleus/country-codes

Automatically updated country data containing ISO codes and English country names, powered by free MaxMind data.

  • Friday, February 2, 2018
  • by schlessera
  • Repository
  • 2 Watchers
  • 10 Stars
  • 9,477 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 9 Versions
  • 25 % Grown

The README.md

Bright Nucleus Country Codes Database

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

This is a Composer plugin that provides an automated version of the free MaxMind GeoLite CSV Country Codes database., (*2)

The main advantage is that the downloaded database will be checked for updates on each composer install and composer update., (*3)

Table Of Contents

Attribution

This product includes GeoLite Legacy data created by MaxMind, available from http://www.maxmind.com., (*4)

Installation

The only thing you need to do to make this work is adding this package as a dependency to your project:, (*5)

composer require brightnucleus/country-codes

Basic Usage

On each composer install or composer update, a check will be made to see whether there's a new version of the database available. If there is, that new version is downloaded., (*6)

Usage is pretty straight-forward. Just use one of the two provided static methods:, (*7)

<?php

use BrightNucleus\CountryCodes\Country;

// Get the name from an ISO 3166 country code.
$name = Country::getNameFromCode( 'US' ); // Returns 'United States'.

// Get the ISO 3166 country code from a country name.
$code = Country::getCodeFromName( 'United States' ); // Returns 'US'.

Contributing

All feedback / bug reports / pull requests are welcome., (*8)

License

This code is released under the MIT license., (*9)

For the full copyright and license information, please view the LICENSE file distributed with this source code., (*10)

The Versions

02/02 2018

dev-master

9999999-dev

Automatically updated country data containing ISO codes and English country names, powered by free MaxMind data.

  Sources   Download

MIT

The Requires

 

02/02 2018

v0.3.1

0.3.1.0

Automatically updated country data containing ISO codes and English country names, powered by free MaxMind data.

  Sources   Download

MIT

The Requires

 

22/12 2017

v0.3.0

0.3.0.0

Automatically updated country data containing ISO codes and English country names, powered by free MaxMind data.

  Sources   Download

MIT

The Requires

 

01/08 2016

v0.2.1

0.2.1.0

Automatically updated country data containing ISO codes and English country names, powered by free MaxMind data.

  Sources   Download

MIT

The Requires

 

01/08 2016

v0.2.0

0.2.0.0

Automatically updated country data containing ISO codes and English country names, powered by free MaxMind data.

  Sources   Download

MIT

The Requires

 

05/04 2016

v0.1.3

0.1.3.0

Automatically updated country data containing ISO codes and English country names, powered by free MaxMind data.

  Sources   Download

GPL-2.0+

The Requires

 

08/03 2016

v0.1.2

0.1.2.0

Automatically updated country data containing ISO codes and English country names, powered by free MaxMind data.

  Sources   Download

GPL-2.0+

The Requires

 

08/03 2016

v0.1.1

0.1.1.0

Automatically updated country data containing ISO codes and English country names, powered by free MaxMind data.

  Sources   Download

GPL-2.0+

The Requires

 

04/03 2016

v0.1.0

0.1.0.0

Automatically updated country data containing ISO codes and English country names, powered by free MaxMind data.

  Sources   Download

GPL-2.0+

The Requires