PHPackages                             countrytext/extracting-country-from-text - 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. countrytext/extracting-country-from-text

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

countrytext/extracting-country-from-text
========================================

Applications that extract country names from strings

v0.2(2y ago)16MITPHP

Since May 18Pushed 2y agoCompare

[ Source](https://github.com/bluegmlduf2/ExtractingCountryFromText)[ Packagist](https://packagist.org/packages/countrytext/extracting-country-from-text)[ RSS](/packages/countrytext-extracting-country-from-text/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

ExtractingCountryFromText
=========================

[](#extractingcountryfromtext)

Applications that extract country names from strings

Installation
------------

[](#installation)

After installing the composer, execute the following commands

`composer require countrytext/extracting-country-from-text`

Usage
-----

[](#usage)

```
$country = new ExtractCounty([
    "searchWord" => "korea", // required
    "searcItem" => "name", // optional
    "fullSearch" => false, // optional
    "language" => "en", // optional
]);

$country->getCountryFullName(); // Array ( [0] => Korea (Democratic People's Republic of) [1] => Korea, Republic of )
$country->getCountryTwoLetter(); // Array ( [0] => kp [1] => kr )
$country->getCountryThreeLetter(); // Array ( [0] => prk [1] => kor )
```

Reference
---------

[](#reference)

I made it by referring to this [repository](https://github.com/stefangabos/world_countries)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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

1091d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/55e5ef329dde8c6668c7ad9cc91642682f16d45da8bfcf75903e0ca209b11206?d=identicon)[bluegmlduf2](/maintainers/bluegmlduf2)

---

Top Contributors

[![bluegmlduf2](https://avatars.githubusercontent.com/u/38097602?v=4)](https://github.com/bluegmlduf2 "bluegmlduf2 (10 commits)")

### Embed Badge

![Health badge](/badges/countrytext-extracting-country-from-text/health.svg)

```
[![Health](https://phpackages.com/badges/countrytext-extracting-country-from-text/health.svg)](https://phpackages.com/packages/countrytext-extracting-country-from-text)
```

###  Alternatives

[felixnagel/t3extblog

A record based blog extension for TYPO3 CMS. Easy to use and packed with features (incl. comments, subscriptions for comments and posts, Wordpress like subscription manager, reasonable email sending in FE and BE, GDPR ready, BE modules, Dashboard widgets, RSS, Sitemap, ...). Flexible and powerful!

3421.6k](/packages/felixnagel-t3extblog)

PHPackages © 2026

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