PHPackages                             khepin/drupal-transliterator-bundle - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. khepin/drupal-transliterator-bundle

ActiveSymfony-bundle[Localization &amp; i18n](/categories/localization)

khepin/drupal-transliterator-bundle
===================================

Symfony bundle to use drupal transliteration (eg in doctrine sluggable extension).

v1.0.2(13y ago)326.2kGPLv2PHP

Since Apr 14Pushed 13y ago1 watchersCompare

[ Source](https://github.com/khepin/KhepinDrupalTransliteratorBundle)[ Packagist](https://packagist.org/packages/khepin/drupal-transliterator-bundle)[ Docs](https://github.com/khepin/KhepinDrupalTransliteratorBundle)[ RSS](/packages/khepin-drupal-transliterator-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

This bundle provides a better transliterator than the one included in Doctrine Extensions. This is useful for the `Sluggable` behavior if you are using a non alphabetic based language. The one bundled in Doctrine extensions works fine for many languages but I found limitations with Chinese at least. Drupal provides a more advanced one.

Transliteration is the process of changing text from `北京` to `Bei Jing`. So that it can be url formatted afterwards.

Installation
============

[](#installation)

Through the deps files add:

```
[KhepinDrupalTransliteratorBundle]
    git=https://github.com/khepin/KhepinDrupalTransliteratorBundle.git
    target=/bundles/Khepin/DrupalTransliteratorBundle

```

Run your vendor script `./bin/vendors install`.

In your `autoload.php` register the Khepin namespace:

```
$loader->registerNamespaces(array(
    // ...
    'Khepin'           => __DIR__.'/../vendor/bundles',
    // ...
));

```

There is no real need to register the bundle as all it provides is a class with static methods to transliterate strings. Having it autoloaded is enough.

Usage
=====

[](#usage)

The bundle provides a Transliterator class with two methods:

- One to just transliterate the text: `Khepin\DrupalTransliteratorBundle\Transliterator::transliterate`
- One that is compatible directly with the declaration in doctrine extensions `Khepin\DrupalTransliteratorBundle\Transliterator::sluggableTransliterate`

The bundle also overrides the standard Doctrine Extensions Sluggable listener so that it uses this transliteration method rather than the standard one. In order to use it, change your DoctrineExtensionBundle to use the new listener:

```
stof_doctrine_extensions:
    class:
        sluggable: Khepin\DrupalTransliteratorBundle\Listener\SluggableListener
    mongodb:
        default:
            sluggable: true
    # or
    orm:
        default:
            sluggable: true

```

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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 ~134 days

Total

3

Last Release

4871d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/287ba80990994822ffc6808fc979762030bc19ce4095a8fa641b4e7d3dc10627?d=identicon)[Khepin](/maintainers/Khepin)

---

Top Contributors

[![khepin](https://avatars.githubusercontent.com/u/455656?v=4)](https://github.com/khepin "khepin (9 commits)")

---

Tags

slug transliteration

### Embed Badge

![Health badge](/badges/khepin-drupal-transliterator-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/khepin-drupal-transliterator-bundle/health.svg)](https://phpackages.com/packages/khepin-drupal-transliterator-bundle)
```

###  Alternatives

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.0k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M491](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

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