PHPackages                             clicksend/integration-library-country-names - 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. clicksend/integration-library-country-names

ActiveLibrary

clicksend/integration-library-country-names
===========================================

Utility library to turn country names into ISO two-letter codes.

v1.0.0(4y ago)01PHPPHP ^7.0|^8.0

Since Feb 24Pushed 4y ago4 watchersCompare

[ Source](https://github.com/ClickSend/integration-library-country-names)[ Packagist](https://packagist.org/packages/clicksend/integration-library-country-names)[ RSS](/packages/clicksend-integration-library-country-names/feed)WikiDiscussions main Synced 2d ago

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

Utility library to turn country names into ISO two-letter codes.
================================================================

[](#utility-library-to-turn-country-names-into-iso-two-letter-codes)

This library is the PHP clone of the python library: alephdata/countrynames/

Requirements
============

[](#requirements)

- PHP `7.0` and later.
- Extensions: intl, yaml, mbstring, json.

Tested on PHP: `7.0`, `7.2`, `7.4`, `8.1`
-----------------------------------------

[](#tested-on-php-70-72-74-81)

Installation
============

[](#installation)

Clone the git repo:
-------------------

[](#clone-the-git-repo)

```
$ git clone https://github.com/ClickSend/integration-library-country-names.git
```

Example:
========

[](#example)

In your php file, paste this code.
Make sure to edit the `integration-library-country-names` directory to match your file structure.
Make sure the directory `integration-library-country-names/lib/data` is writable, for caching purpose.

```
