PHPackages                             adiafora/laravel-punycode - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. adiafora/laravel-punycode

ActivePackage[Utility &amp; Helpers](/categories/utility)

adiafora/laravel-punycode
=========================

Package for decoding domains in punycode for Laravel 5

1.3(6y ago)2351MITPHPPHP &gt;=5.5.9

Since Jul 22Pushed 6y agoCompare

[ Source](https://github.com/adiafora/laravel-punycode)[ Packagist](https://packagist.org/packages/adiafora/laravel-punycode)[ RSS](/packages/adiafora-laravel-punycode/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Laravel Punycode
================

[](#laravel-punycode)

This package converts a Unicode encoded domain name to a IDNA ASCII form and vice-versa.

This package is based on another package - fomvasss/laravel-punycode. But the idna\_convert class is taken as the main class. And it allows you to use a domain in any writing: only domain, domain with www, Protocol, script, parameters, and so on.

If You accidentally encoded an English domain in punycode, then nothing will happen to it, no errors and unexpected results. You can safely use this package on all domains, it will do everything for You.

Install
-------

[](#install)

Run:

```
    composer require "adiafora/laravel-punycode"
```

For Laravel &lt; 5.5 Add in ServiceProvider to the providers array in config/app.php

```
    Adiafora\Punycode\PunycodeServiceProvider::class,
```

Usage
-----

[](#usage)

### Usage facade

[](#usage-facade)

You can now using the Facade by default.

For Laravel &lt; 5.5 Add in Facade to the aliases array in config/app.php

```
    'Punycode' => Adiafora\Punycode\Facades\Punycode::class,
```

Example usage:

```
    var_dump(Punycode::encode('мой-веб-сайт.сайт'));
    // outputs: xn-----8kcceszgtu3bo.xn--80aswg

    var_dump(Punycode::decode('xn-----8kcceszgtu3bo.xn--80aswg'));
    // outputs: мой-веб-сайт.сайт
```

### Usage helper functions

[](#usage-helper-functions)

```
    punycode_encode('мой-веб-сайт.сайт');
    punycode_decode('xn-----8kcceszgtu3bo.xn--80aswg');
```

License
-------

[](#license)

The MIT License (MIT). Please see License File for more information.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

2533d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d4a7033811d36da4fe0bd43c276f2dd8b2b20915d5541cd02049b7b2258b8d70?d=identicon)[ZhidkovSV](/maintainers/ZhidkovSV)

---

Top Contributors

[![adiafora](https://avatars.githubusercontent.com/u/53189193?v=4)](https://github.com/adiafora "adiafora (8 commits)")

---

Tags

laravelidnpunycodedomain

### Embed Badge

![Health badge](/badges/adiafora-laravel-punycode/health.svg)

```
[![Health](https://phpackages.com/badges/adiafora-laravel-punycode/health.svg)](https://phpackages.com/packages/adiafora-laravel-punycode)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k9.6k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90128.1k](/packages/emargareten-inertia-modal)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

3614.9k](/packages/linkxtr-laravel-qrcode)[wearepixel/laravel-cart

A cart implementation for Laravel

1355.6k](/packages/wearepixel-laravel-cart)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
