etechnika / idna-convert
Etechnika.eu idna-convert
Installs: 383 529
Dependents: 6
Suggesters: 0
Security: 0
Stars: 15
Watchers: 1
Forks: 5
Open Issues: 1
Requires
- php: >=5.6.0
- algo26-matthias/idna-convert: ~0.9
Requires (Dev)
- fabpot/php-cs-fixer: ~1.0
- mayflower/php-codebrowser: ~1.1
- pdepend/pdepend: ~2.0
- phing/phing: ~2.10
- phploc/phploc: ~2.0
- phpmd/phpmd: ~2.0
- phpunit/php-code-coverage: ~2.0
- phpunit/phpcov: ~2.0
- phpunit/phpunit: ~4.1
- satooshi/php-coveralls: ~0.6
- sebastian/phpcpd: ~2.0
- sebastian/phpdcd: ~1.0
- squizlabs/php_codesniffer: ~2.0
Suggests
- monolog/monolog: You should used orginal package mso/idna-convert
README
IDNA Convert (idna_convert.class.php) prepared to packagist.
IDNA Convert is a fork of phlyLabs pure PHP IDNA Converter (http://idnaconv.phlymail.de/) It converts internationalized domain names between UTF-8 and ASCII (punycode) notation. Orginal package is in directory lib/phlylabs.
You should used orginal package mso/idna-convert (https://github.com/phlylabs/idna-convert)
Installation
Via composer
Add the package to your composer.json
file:
{
"require": {
"etechnika/idna-convert": "1.0.*"
}
}
Run composer.phar update
.
Usage
The following example describes basic usage.
<?php
require_once('vendor/autoload.php');
use Etechnika\IdnaConvert\IdnaConvert as IdnaConvert;
IdnaConvert::encodeString( 'żółw.pl' ); // prints 'xn--w-uga1v8h.pl'
IdnaConvert::decodeString( 'xn--w-uga1v8h.pl' ); // prints 'żółw.pl'
?>