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

[vcian/pulse-active-sessions

A Laravel Pulse card to show active user session.

11469.2k](/packages/vcian-pulse-active-sessions)[norberttech/aceeditor-bundle

Bundle that integrate excellent JavaScript ace editor into Symfony Form.

28310.8k](/packages/norberttech-aceeditor-bundle)[tomloprod/radiance

A deterministic mesh gradient avatar generator for PHP.

1393.7k](/packages/tomloprod-radiance)[chefkoch/morphoji

A library to convert UTF-8 emoji characters to latin1 placeholders and vice versa.

14136.9k1](/packages/chefkoch-morphoji)[epessine/axis

Draw charts with a simple API on Laravel

265.6k](/packages/epessine-axis)

PHPackages © 2026

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