Projects / PHP Net_IDNA

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.

Tags
Licenses
Operating Systems
Implementation

RSS Recent releases

  •  26 Sep 2013 19:04

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

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.

  •  22 Nov 2010 02:19

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 21:33

    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.

    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.

    Screenshot

    Project Spotlight

    SCaVis

    A scientific computation and visualization environment.

    Screenshot

    Project Spotlight

    Buildes

    A designer’s program for describing parts of the building.