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
- Host: GitHub
- URL: https://github.com/centralnicgroup-opensource/rtldev-middleware-php-idna-translator
- Owner: centralnicgroup-opensource
- Created: 2024-03-18T16:30:55.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-09-22T03:12:31.000Z (9 months ago)
- Last Synced: 2025-09-22T05:31:08.843Z (9 months ago)
- Language: PHP
- Homepage:
- Size: 1.37 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
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