vinelab/country

Country names and abbreviations

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

This package is auto-updated.

Last update: 2024-06-22 14:17:11 UTC


README

Country package for Laravel 5

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