PHPackages                             sunrise/slugger - 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. sunrise/slugger

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

sunrise/slugger
===============

Slugger for PHP 7.1+ based on ICU

v2.1.3(4y ago)108.5k↓91.7%4[4 PRs](https://github.com/sunrise-php/slugger/pulls)MITPHPPHP ^7.1|^8.0

Since Oct 23Pushed 4mo ago3 watchersCompare

[ Source](https://github.com/sunrise-php/slugger)[ Packagist](https://packagist.org/packages/sunrise/slugger)[ Docs](https://github.com/sunrise-php/slugger)[ RSS](/packages/sunrise-slugger/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (2)Versions (24)Used By (0)

Simple slugger for PHP 7.1+ based on ICU
========================================

[](#simple-slugger-for-php-71-based-on-icu)

[![Gitter](https://camo.githubusercontent.com/4f746188a409f8b948864cd36ddde5d326feef61d429442e1b43be9edb3c4547/68747470733a2f2f6261646765732e6769747465722e696d2f73756e726973652d7068702f737570706f72742e706e67)](https://gitter.im/sunrise-php/support)[![Build Status](https://camo.githubusercontent.com/02f87e04fe034bb0e075b58d2eb5b0430c9b44feac13d5a7bea0e16caba56280/68747470733a2f2f636972636c6563692e636f6d2f67682f73756e726973652d7068702f736c75676765722e7376673f7374796c653d736869656c64)](https://circleci.com/gh/sunrise-php/slugger)[![Code Coverage](https://camo.githubusercontent.com/f2753c025f70b5257f5b14122599dd76729db87f7d457f1223c383c4eecd3c87/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73756e726973652d7068702f736c75676765722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sunrise-php/slugger/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/0a7afb2d2059216ca49516ce8a60d6af5948fcd3fcd5fab0c81535b7192dc852/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73756e726973652d7068702f736c75676765722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sunrise-php/slugger/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/bec09d4e7324a40eeec449352ba844945b2e087f3170c4de4746b7a95386be8b/68747470733a2f2f706f7365722e707567782e6f72672f73756e726973652f736c75676765722f646f776e6c6f6164733f666f726d61743d666c6174)](https://packagist.org/packages/sunrise/slugger)[![Latest Stable Version](https://camo.githubusercontent.com/777b2d589e41909252e515903b68cef2a41472a0356fdcd1855129b93935f847/68747470733a2f2f706f7365722e707567782e6f72672f73756e726973652f736c75676765722f762f737461626c653f666f726d61743d666c6174)](https://packagist.org/packages/sunrise/slugger)[![License](https://camo.githubusercontent.com/9919e43ef4e5252e49939263e668547aacb745160232ef000c6c8561323d1b86/68747470733a2f2f706f7365722e707567782e6f72672f73756e726973652f736c75676765722f6c6963656e73653f666f726d61743d666c6174)](https://packagist.org/packages/sunrise/slugger)

Installation
------------

[](#installation)

```
composer require sunrise/slugger
```

How to use
----------

[](#how-to-use)

#### Russian to Latin (default)

[](#russian-to-latin-default)

```
use Sunrise\Slugger\Slugger;

$slugger = new Slugger();

// syesh-yeshche-etikh-myagkikh-frantsuzskikh-bulok-da-vypey-chayu
$slugger->slugify('Съешь ещё этих мягких французских булок, да выпей чаю');
```

#### Deutsch to Latin

[](#deutsch-to-latin)

```
use Sunrise\Slugger\Slugger;

$slugger = new Slugger('de-ASCII');

// falsches-ueben-von-xylophonmusik-quaelt-jeden-groesseren-zwerg
$slugger->slugify('Falsches Üben von Xylophonmusik quält jeden größeren Zwerg');
```

#### Custom replacements

[](#custom-replacements)

```
$slugger = new Slugger(null, [
    '.' => ' dot ',
    '@' => ' at ',
]);

// admin@acme.com
$slugger->slugify('admin-at-acme-dot-com');
```

Useful links
------------

[](#useful-links)

-
-
-

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance51

Moderate activity, may be stable

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 88.1% 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 ~85 days

Recently: every ~110 days

Total

16

Last Release

1535d ago

Major Versions

v1.0.10 → v2.0.02021-02-01

PHP version history (3 changes)v1.0.0PHP ^7.2

v1.0.5PHP ^7.1

v2.0.0PHP ^7.1|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2872934?v=4)[Anatolii Nekhai](/maintainers/fenric)[@fenric](https://github.com/fenric)

---

Top Contributors

[![fenric](https://avatars.githubusercontent.com/u/2872934?v=4)](https://github.com/fenric "fenric (52 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (5 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (2 commits)")

---

Tags

iculatinphp-libraryphp7php8slugsluggerslugifytranslittransliteratetransliterationtransliteratoricuPHP7php8sunrisefenricslugger

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sunrise-slugger/health.svg)

```
[![Health](https://phpackages.com/badges/sunrise-slugger/health.svg)](https://phpackages.com/packages/sunrise-slugger)
```

###  Alternatives

[symfony/polyfill-intl-icu

Symfony polyfill for intl's ICU-related data and classes

2.6k266.6M149](/packages/symfony-polyfill-intl-icu)[sunrise/vin

VIN decoder for PHP 7.1+ based on ISO-3779

81141.2k](/packages/sunrise-vin)[melbahja/seo

SEO library for PHP is a simple PHP library to help developers 🍻 do better on-page SEO optimizations.

367157.6k9](/packages/melbahja-seo)[butschster/cron-expression-generator

Cron expression generator

511.8M3](/packages/butschster-cron-expression-generator)[sunrise/hydrator

A flexible strictly-typed hydrator.

2133.1k6](/packages/sunrise-hydrator)[yaroslavche/bitmask

BitMask, EnumBitMask

3458.4k1](/packages/yaroslavche-bitmask)

PHPackages © 2026

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