Projects / PHP Net_IDNA


PHP Net_IDNA is a class to convert between the Punycode and Unicode formats. Punycode is a standard described in RFC 3492 and part of IDNA (Internationalizing Domain Names in Applications [RFC3490]) . This class allows PHP scripts to convert these domain names without having one of the PHP extensions installed. It supports both IDNA 2003 and IDNA 2008.

Operating Systems

Recent releases

  •  26 Sep 2013 17:26

    Release Notes: The example page contained a possible XSS attack, which has been fixed.

    •  11 Mar 2011 19:44

      Release Notes: 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.

      •  21 Nov 2010 15:57

        Release Notes: 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.

        •  04 Nov 2010 18:40

          Release Notes: This build can convert the German ligature into Punycode (in fact, this is the default). The change was required, since DeNIC, the registry for .de domains, now allows this character in domain names. A configuration option to enable the old behaviour is available.

          •  13 Oct 2010 18:09

            Release Notes: This version 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.


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.