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

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

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

Helps to get a valid slug from the passed string

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

Since Feb 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/abeliani/slug-helper)[ Packagist](https://packagist.org/packages/abeliani/slug-helper)[ Docs](https://treecode.ru)[ RSS](/packages/abeliani-slug-helper/feed)WikiDiscussions dev Synced today

READMEChangelogDependencies (2)Versions (4)Used By (1)

SlugHelper - helps to get a valid slug from the passed string
=============================================================

[](#slughelper---helps-to-get-a-valid-slug-from-the-passed-string)

Customizable library for working with slug

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

[](#installation)

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

Examples
--------

[](#examples)

### Simple example

[](#simple-example)

By default, the helper uses recommended filters to create a slug

```
$helper = new SlugHelper;
print $helper('  `Test, a very good text !='); // test-a-very-good-text
```

### Customize filters

[](#customize-filters)

For example, let's remove articles from a slug and change words separator

```
$helper = new SlugHelper(options: [FilterWords::class => ['a', 'an'], ReplaceSpaces::class => '+']);
print $helper('A book with an apple'); // book+with+apple
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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

Every ~229 days

Total

3

Last Release

787d ago

PHP version history (3 changes)v1.0.0-rc0PHP ^8.0

v1.0.0-rc1PHP ^8

v1.0.0PHP ^8.1

### 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-slug-helper/health.svg)

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

PHPackages © 2026

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