PHP Net_IDNA

Software Screenshot:
PHP Net_IDNA
Software Details:
Version: 0.8.0
Upload Date: 11 May 15
Distribution Type: Freeware
Downloads: 4

Rating: nan/5 (Total Votes: 0)

IDNA stands for "Internationalized Domain Names in Applications". Although there's various extensions for PHP, most of the providers do not offer these for use.

That's why we programmed an implementation written in PHP completely.

PHP Net_IDNA class is also available as a PEAR package.

This class is our contribution to the Open Source Community and that's why it is licvenced under the LGPL (GNU Lesser General Public Licnece), i.e. it can be used in non-comercial and commercial projects.

To use Net_IDNA in your own appications, you just need to include() or require() the source and instantiate the class with $idn = new Net_IDNA().

The object offers two methods - encode() for converting an UTF-8 string to Punycode format and decode() for the opposite direction.

What is new in this release:

  • The class now fully supports IDNA 2008 and fixes some minor issues with mb_string.
  • Read the supplied ReadMe to learn how to switch between IDNA 2003 and 2008.

What is new in version 0.7.0:

  • This build fixes a bug initializing the replace map for the German ß on construct. Additionally, setting whether to convert the ß or not via set_parameter() had no effect.

What is new in version 0.6.4:

  • This release adds the method encode_uri() to specifically convert the host name part of a whole URI to Punycode but leave the other components (path, query string, etc.) alone.
  • The code has been cleaned up a little.

What is new in version 0.6.2:

  • This build fixes an issue with the php.ini directive mbstring.func_overload that could lead to cut off strings when encoding a Unicode string to Punycode.

Similar Software

Pytho
Pytho

3 Jun 15

Gucharmap
Gucharmap

22 Jun 18

potpie
potpie

14 Apr 15

Comments to PHP Net_IDNA

Comments not found
Add Comment
Turn on images!