PHPackages                             abeliani/translated-slug-helper - 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. abeliani/translated-slug-helper

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

abeliani/translated-slug-helper
===============================

Helps to get a valid slug translated or transliterated by a driver collection

v1.0.0(2y ago)05MITPHPPHP ^8.1

Since May 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/abeliani/translated-slug-helper)[ Packagist](https://packagist.org/packages/abeliani/translated-slug-helper)[ Docs](https://treecode.ru)[ RSS](/packages/abeliani-translated-slug-helper/feed)WikiDiscussions develop Synced 2d ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

TranslatedSlugHelper - helps to get a valid url slug translated or transliterated by a driver collection
========================================================================================================

[](#translatedslughelper---helps-to-get-a-valid-url-slug-translated-or-transliterated-by-a-driver-collection)

The package uses libraries **[StringTranslator](https://github.com/abeliani/string-translator.git)** and **[SlugHelper](https://github.com/abeliani/slug-helper.git)**.

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

[](#installation)

```
composer require abeliani/translated-slug-helper
```

Examples
--------

[](#examples)

### Example of offline driver

[](#example-of-offline-driver)

Blog posts often require a slug to generate a url. We can use a transliteration driver which simply transliteration the symbol table for example: u-у and vice versa.

```
$slug = new TranslatedSlugHelper(
    new Settings('ru'),
    new TranslatedBy(Translit::class)
);

print $slug->from('Привет мир!', 'en'); // privet-mir
```

### Example of online driver

[](#example-of-online-driver)

Online drivers perform translate a text.

```
$slug = new TranslatedSlugHelper(
    new Settings('ru', ['a', 'an']), // to remove words from slug (eg. a, an) we can pass them by array
    new TranslatedBy(MyMemory::class, ['apiKey' => 'someapikey'])
);

print $slug->from('Привет мир!', 'en'); // hello-world
```

### Example of driver chain

[](#example-of-driver-chain)

An online driver will suddenly be unavailable (for example), in this case we can pass a string for translation from one driver to another along the chain.

```
$chain = [
   new TranslatedBy(MyMemory::class, ['apiKey' => 'someapikey']),
   new TranslatedBy(Translit::class),
];

$slug = new TranslatedSlugHelper(
    new Settings('ru'),
    ...$chain,
);

print $slug->from('Привет мир!', 'en'); // if MyMemory service is available: hello-world | otherwise by transilt driver: privet-mir
```

If you need to change the word separator. you can pass it through settings object

```
// Passing new divider +
new Settings('ru', [], '+')
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

787d ago

### Community

Maintainers

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

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/abeliani-translated-slug-helper/health.svg)

```
[![Health](https://phpackages.com/badges/abeliani-translated-slug-helper/health.svg)](https://phpackages.com/packages/abeliani-translated-slug-helper)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[oat-sa/tao-core

TAO core extension

66143.7k124](/packages/oat-sa-tao-core)

PHPackages © 2026

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