An open API service indexing awesome lists of open source software.

https://github.com/centralnicgroup-opensource/rtldev-middleware-php-idna-translator

PHP IDN Converter for Domain Names
https://github.com/centralnicgroup-opensource/rtldev-middleware-php-idna-translator

Last synced: 8 months ago
JSON representation

PHP IDN Converter for Domain Names

Awesome Lists containing this project

README

          

# 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:
- 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

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

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

## Use Cases

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

## Usage

### 1. Convert a Domain String to Unicode

```php