2017 © Pedro PelĂĄez
 

library idna-converter

Converts domain names between UTF-8 and ASCII (punycode) notation. This is a fork of phlyLabs' pure PHP IDNA Converter

image

mabrahamde/idna-converter

Converts domain names between UTF-8 and ASCII (punycode) notation. This is a fork of phlyLabs' pure PHP IDNA Converter

  • Thursday, December 5, 2013
  • by mabrahamde
  • Repository
  • 2 Watchers
  • 6 Stars
  • 23,762 Installations
  • PHP
  • 2 Dependents
  • 1 Suggesters
  • 3 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

php-idna-converter

mabrahamde/php-idna-converter is a fork of phlyLabs' pure PHP IDNA Converter. It converts internationalized domain names between UTF-8 and ASCII (punycode) notation., (*1)

Unlike the original mabrahamde/php-idna-converter is available on packagist.org., (*2)

If you have installed PHP >= 5.3, PECL intl >= 1.0.2, PECL idn >= 0.1. You can rely on the PHP IDN functions., (*3)

Visit author's website, (*4)

Installation

Via composer

Add the package to your composer.json file:, (*5)

{
  "require": {
    "mabrahamde/idna-converter": "dev-master",
  },
}

Run composer.phar update., (*6)

Usage

This library is used exactly as the original. The original documentation is available at src/ReadMe.txt and src/example.php., (*7)

The following example describes basic usage., (*8)

<?php

require_once('vendor/autoload.php');

$idn = new \idna_convert(array('idn_version' => 2008));

echo $idn->encode('lĂŒbeck.de'); // prints 'xn--lbeck-kva.de'

echo $idn->decode('xn--lbeck-kva.de') // prints 'lĂŒbeck.de'

?>

Contact

Do you have any questions or suggestions? Feel free to contact me at dev ( at ) mabraham.de., (*9)

Visit author's website, (*10)

The Versions

05/12 2013

dev-master

9999999-dev

Converts domain names between UTF-8 and ASCII (punycode) notation. This is a fork of phlyLabs' pure PHP IDNA Converter

  Sources   Download

LGPL

The Requires

  • php >=5.0.0

 

domain encode lib idn idna

05/12 2013

1.0.0

1.0.0.0

Converts domain names between UTF-8 and ASCII (punycode) notation. This is a fork of phlyLabs' pure PHP IDNA Converter

  Sources   Download

LGPL

The Requires

  • php >=5.0.0

 

domain encode lib idn idna