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

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

[z3d0x/filament-fabricator

Block-Based Page Builder Skeleton for your Filament Apps

373158.4k3](/packages/z3d0x-filament-fabricator)[matthiasmullie/geo

Geography helper

6377.6k1](/packages/matthiasmullie-geo)[nasyrov/laravel-enums

Laravel package for Enum implementation.

3272.5k](/packages/nasyrov-laravel-enums)[mnapoli/pretty

Run all code formatting tools with one command: pretty

1085.1k9](/packages/mnapoli-pretty)[mestrona/magento-module-categoryredirect

Magento 2 Module to simply customize the menu with additional URLs: Create a category, enter the redirect, done.

2343.0k](/packages/mestrona-magento-module-categoryredirect)[kphoen/rulerz-spec-builder

Specification builder for RulerZ

1149.5k](/packages/kphoen-rulerz-spec-builder)

PHPackages © 2026

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