Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 729 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 729 Bytes

Adding Definite Article to Country Names

Build Status

This PHP package allows for adding the definite article ("the") to country names if required for proper English. Example: "United States" becomes "the United States." If it is a country that does not need the definite article added, it remains. Like so: "Japan" stays "Japan."

Installation

  composer require dadeg/php-country-definite-article

Getting Started

use CountryDefiniteArticle\CountryFormatter;
$countryWithDefiniteArticleAdded = CountryFormatter::format("United States"); // "the United States"