Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
This package has been abandoned.
Generated on May 10, 2024 via composer

true/punycode v2.1.1

A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA)
Package summary
Share
1
issue
1
high severity
meta
1
1
license
2
MIT
Package created
10 Mar 2014
Version published
16 Nov 2016
Maintainers
3
Total deps
2
Direct deps
1
License
MIT

Issues

1

1 high severity issue

high
via: true/punycode@v2.1.1
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
symfony/polyfill-mbstring@v1.29.0
true/punycode@v2.1.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
ⓘ This is a list of true/punycode 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
symfony/polyfill-mbstringv1.29.0-MIT
prod

Visualizations

Frequently Asked Questions

What does true/punycode do?

The true/punycode is a PHP library designed for the conversion of Unicode to ASCII and vice versa. This is particularly useful for the encoding of Internationalized Domain Names in Applications (IDNA). It leverages the Bootstring encoding method, allowing you to represent Unicode within the limited character subset of ASCII, ideal for domain names.

How do you use true/punycode?

True/punycode installation and usage are simple. First, install the package via Composer by running the following command in your terminal or command prompt:

composer require true/punycode:~2.0

Then, you can use it in your PHP code, like so:

<?php

// Import Punycode
use TrueBV\Punycode;

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

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

With the above code, you're able to encode and decode a domain name using Punycode. In this instance, the domain name 'renangonçalves.com' is Punycode encoded and then decoded.

Where are the true/punycode docs?

While the true/punycode README on GitHub provides essential information about the library, it does not clearly specify a dedicated documentation site. However, given the tool's simplicity, the GitHub README itself effectively serves as documentation, providing all the necessary guidance for installation and utilization of the library. For deeper understanding, code inspection would be useful. Bear in mind that this library is intended to provide a solution for users unable to install PECL extensions or who write portable code across multiple hosts, including Windows and macOS.