2017 © Pedro PelĂĄez
 

library punycode

A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA)

image

mleko/punycode

A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA)

  • Friday, July 31, 2015
  • by mleko
  • Repository
  • 1 Watchers
  • 0 Stars
  • 778 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 27 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Punycode

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version, (*1)

A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA)., (*2)

Install

composer require true/punycode:~2.0

Usage

<?php

// Import Punycode
use TrueBV\Punycode;

$Punycode = new Punycode();
var_dump($Punycode->encode('renangonçalves.com'));
// outputs: xn--renangonalves-pgb.com

var_dump($Punycode->decode('xn--renangonalves-pgb.com'));
// outputs: renangonçalves.com

FAQ

1. What is this library for?

This library converts a Unicode encoded domain name to a IDNA ASCII form and vice-versa., (*3)

2. Why should I use this instead of PHP's IDN Functions?

If you can compile the needed dependencies (intl, libidn) there is not much difference. But if you want to write portable code between hosts (including Windows and Mac OS), or can't install PECL extensions, this is the right library for you., (*4)

The Versions

31/07 2015

dev-master

9999999-dev https://github.com/true/php-punycode

A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA)

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-mbstring *

 

The Development Requires

by Renan Gonçalves

idna punycode

24/06 2015

2.0.0

2.0.0.0 https://github.com/true/php-punycode

A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA)

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-mbstring *

 

The Development Requires

by Renan Gonçalves

idna punycode

12/03 2015

1.1.0

1.1.0.0 https://github.com/true/php-punycode

A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA)

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-mbstring *

 

The Development Requires

by Renan Gonçalves

idna punycode

26/08 2014

1.0.1

1.0.1.0 https://github.com/true/php-punycode

A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA)

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-mbstring *

 

The Development Requires

by Renan Gonçalves

idna punycode

10/03 2014

1.0.0

1.0.0.0 https://github.com/true/php-punycode

A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA)

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-mbstring *

 

The Development Requires

by Renan Gonçalves

idna punycode