PHPackages                             marcw/cccn - 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. marcw/cccn

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

marcw/cccn
==========

Convert country names to country code in any language

1.0.0(10y ago)2203MITPHP

Since Dec 22Pushed 10y ago2 watchersCompare

[ Source](https://github.com/marcw/cccn)[ Packagist](https://packagist.org/packages/marcw/cccn)[ RSS](/packages/marcw-cccn/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

CCCN
====

[](#cccn)

[![Build Status](https://camo.githubusercontent.com/8824e194e59ee06f2b44616ecdfdb2071740ac124dd9d6036469acef8879c87d/68747470733a2f2f7472617669732d63692e6f72672f6d617263772f6363636e2e737667)](https://camo.githubusercontent.com/8824e194e59ee06f2b44616ecdfdb2071740ac124dd9d6036469acef8879c87d/68747470733a2f2f7472617669732d63692e6f72672f6d617263772f6363636e2e737667)

Simply convert country names (from nearly every languages) to the corresponding country code. The country list comes from .

Usage
-----

[](#usage)

```
// will return 'FR'
MarcW\CCCN\CCCN::getCountryCode('Fàlâŋnsì');

```

License
-------

[](#license)

MIT

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3888d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5869940?v=4)[futurecat](/maintainers/futurecat)[@futurecat](https://github.com/futurecat)

---

Top Contributors

[![marcw](https://avatars.githubusercontent.com/u/160332?v=4)](https://github.com/marcw "marcw (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/marcw-cccn/health.svg)

```
[![Health](https://phpackages.com/badges/marcw-cccn/health.svg)](https://phpackages.com/packages/marcw-cccn)
```

PHPackages © 2026

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