PHPackages                             centralnic-reseller/idn-converter - 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. centralnic-reseller/idn-converter

ActiveLibrary

centralnic-reseller/idn-converter
=================================

PHP library to convert Domain Names correctly from IDN to Punycode, and vice-versa also offers TR46 processing.

v1.0.4(1y ago)029.8k—2.3%1MITPHPPHP &gt;=7.4.0CI failing

Since Mar 22Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/centralnicgroup-opensource/rtldev-middleware-php-idna-translator)[ Packagist](https://packagist.org/packages/centralnic-reseller/idn-converter)[ Docs](https://github.com/centralnicgroup-opensource/rtldev-middleware-php-idna-translator)[ RSS](/packages/centralnic-reseller-idn-converter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (1)

IDN Converter - Convert IDN to Punycode or Punycode to IDN - PHP Library
========================================================================

[](#idn-converter---convert-idn-to-punycode-or-punycode-to-idn---php-library)

The IDN Converter PHP Library provides a simple and efficient solution for converting Internationalized Domain Names (IDNs) to Punycode and vice versa in PHP applications. With the `ConverterFactory` class, developers can seamlessly handle domain string conversions between Unicode and Punycode formats, ensuring compatibility and consistency across different systems.

### Key Features:

[](#key-features)

- Convert domain strings to Unicode and Punycode formats effortlessly.
- Supports conversion of single domain strings as well as bulk conversion of multiple domains.
- Intuitive API with easy-to-use methods for domain conversion.
- Comprehensive API documentation for easy integration and usage.

**Get Started:** Install the library via Composer and follow the usage examples in the README to start converting domain strings efficiently in your PHP projects.

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

[](#installation)

You can install the IDN Converter PHP Library via Composer. Run the following command in your terminal:

```
composer require centralnic-reseller/idn-converter
```

Use Cases
---------

[](#use-cases)

- **Domain Conversion**: Convert domain strings between Unicode and Punycode formats to ensure compatibility and consistency across different systems.

Usage
-----

[](#usage)

### 1. Convert a Domain String to Unicode

[](#1-convert-a-domain-string-to-unicode)

```
