punycode.php

Non-length-limited punycode en-/decoder
git clone git://git.finwo.net/lib/punycode.php
Log | Files | Refs | README | LICENSE

README.md (576B)


      1 Finwo / Punycode
      2 ================
      3 Non-length-limited punycode en-/decoder
      4 
      5 ## Usage
      6 
      7 Encoding a string
      8 
      9 ```php
     10 $encodedString = Punycode::encode( $stringToEncode );
     11 ```
     12 
     13 Decoding a string
     14 
     15 ```php
     16 $decodedString = Punycode::decode( $encodedString );
     17 ```
     18 
     19 Checking if a string is valid punycode
     20 
     21 ```php
     22 $isValid = Punycode::isPunycode( $stringToTest );
     23 ```
     24 
     25 ## Contributing
     26 
     27 After checking the [Github issues](https://github.com/finwo/php-punycode/issues) and confirming that your request isn't already being worked on, feel free to spawn a new fork and send in a pull request.