dadeg / php-country-definite-article
PHP library for adding the definite article 'the' to country names that require it for correct English grammar.
Installs: 606
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/dadeg/php-country-definite-article
Requires (Dev)
- phpunit/phpunit: 4.1.*
This package is not auto-updated.
Last update: 2025-10-06 10:41:25 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"