dadeg/php-country-definite-article

PHP library for adding the definite article 'the' to country names that require it for correct English grammar.

1.0.1 2017-07-31 03:46 UTC

This package is not auto-updated.

Last update: 2024-05-20 04:34:50 UTC


README

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"