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
Requires (Dev)
- phpunit/phpunit: 4.1.*
This package is not auto-updated.
Last update: 2025-03-24 08:14:54 UTC
README
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"