vinelab/country

Country names and abbreviations

v0.3.0 2021-04-22 07:02 UTC

This package is auto-updated.

Last update: 2022-06-22 09:41:33 UTC


README

Translates between country name and abbreviation and vise versa.

Installation

composer require vinelab/country

Publish Config File

php artisan vendor:publish --provider="Vinelab\Country\CountryServiceProvider"

Usage

$countryName = Country::name('US'); // United States
$countryAbbreviation = Country::abbreviation('United States'); // US