vinelab/country

Country names and abbreviations

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

This package is auto-updated.

Last update: 2024-03-22 13:45:27 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