PHPackages                             dadeg/php-country-definite-article - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dadeg/php-country-definite-article

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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(8y ago)1606MITPHP

Since Jul 31Pushed 8y agoCompare

[ Source](https://github.com/dadeg/php-country-definite-article)[ Packagist](https://packagist.org/packages/dadeg/php-country-definite-article)[ RSS](/packages/dadeg-php-country-definite-article/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Adding Definite Article to Country Names
========================================

[](#adding-definite-article-to-country-names)

[![Build Status](https://camo.githubusercontent.com/1898490c2e16f07244038dbf40568c646150423685ec74f9d305ffc8fec2007d/68747470733a2f2f7472617669732d63692e6f72672f64616465672f7068702d636f756e7472792d646566696e6974652d61727469636c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dadeg/php-country-definite-article)

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
------------

[](#installation)

```
  composer require dadeg/php-country-definite-article

```

Getting Started
---------------

[](#getting-started)

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

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3204d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/17eff93d7630b0ebc01f4e372fdb1eb38f8884edfbf25fd3e67eda4aa8c9c168?d=identicon)[dadeg](/maintainers/dadeg)

---

Top Contributors

[![dadeg](https://avatars.githubusercontent.com/u/4580642?v=4)](https://github.com/dadeg "dadeg (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dadeg-php-country-definite-article/health.svg)

```
[![Health](https://phpackages.com/badges/dadeg-php-country-definite-article/health.svg)](https://phpackages.com/packages/dadeg-php-country-definite-article)
```

###  Alternatives

[alchemy/zippy

Zippy, the archive manager companion

47522.6M51](/packages/alchemy-zippy)[kotchuprik/php-short-id

Yet another Short ID generator. The library help you generate short id like youtube, vimeo, bit.ly, etc.

3054.4k](/packages/kotchuprik-php-short-id)[transprime-research/piper

PHP Pipe method execution with values from chained method executions

174.6k2](/packages/transprime-research-piper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
