PHPackages                             rudak/sluggak - 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. rudak/sluggak

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

rudak/sluggak
=============

1.0.0(9y ago)022PHP

Since Dec 21Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/rudak/Sluggak)[ Packagist](https://packagist.org/packages/rudak/sluggak)[ RSS](/packages/rudak-sluggak/feed)WikiDiscussions master Synced today

READMEChangelog (3)DependenciesVersions (3)Used By (0)

Sluggak
=======

[](#sluggak)

Simple static slug library and twig extension for easy slug rendering.

### How to install

[](#how-to-install)

```
composer require rudak/sluggak

```

### How it works

[](#how-it-works)

Just include the namespace

```
use Rudak\Sluggak\Sluggak;

```

Just use the slugThis static method like this

```
echo Sluggak::slugThis("J'ai vraiment de l'énergie à vendre !");
// ==> j-ai-vraiment-de-l-energie-a-vendre

```

You can also change the separator before make the job

```
Sluggak::setSeparator('_');
echo Sluggak::slugThis("J'ai vraiment de l'énergie à vendre !");
// ==> j_ai_vraiment_de_l_energie_a_vendre

```

You can also chain it like this

```
echo Sluggak::getInstance()->setSeparator('_')->slugThis("J'ai vraiment de l'énergie à vendre !");
// ==> j_ai_vraiment_de_l_energie_a_vendre

```

Twig integration
----------------

[](#twig-integration)

You can slug a string directly in your views. Just add it to your services.yml

```
app.twig_extension:
    class: Rudak\Sluggak\Twig\AppExtension
    public: false
    tags:
        - { name: twig.extension }

```

And use it like this :

```
{{ "your string"|slug }}  => your-string

```

That's all !

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance46

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 92.3% 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

Unknown

Total

1

Last Release

3477d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c53497f169359bdf8ab67f3690af61bd04257cdf7ad6302bd78534978115e7b?d=identicon)[rudak](/maintainers/rudak)

---

Top Contributors

[![rudak](https://avatars.githubusercontent.com/u/604478?v=4)](https://github.com/rudak "rudak (12 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (1 commits)")

### Embed Badge

![Health badge](/badges/rudak-sluggak/health.svg)

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

###  Alternatives

[tianhe1986/fatsmalltools

some small tools

981.2k](/packages/tianhe1986-fatsmalltools)

PHPackages © 2026

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