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 today

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 43% 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

2482d 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

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M683](/packages/barryvdh-laravel-ide-helper)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)[netinternet/logicboxes

Laravel logicboxes package

151.5k](/packages/netinternet-logicboxes)

PHPackages © 2026

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