PHPackages                             afshinpersian/phpslugger - 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. afshinpersian/phpslugger

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

afshinpersian/phpslugger
========================

generate php slug from text

1(8y ago)54363MITPHP

Since Jan 1Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

php-slugit
==========

[](#php-slugit)

create url slug from a text and replace special character

### Install

[](#install)

```
composer install
```

##### Direct install from composer

[](#direct-install-from-composer)

```
composer require afshinpersian/phpslugger
```

### Include it via Composer Autoloader

[](#include-it-via-composer-autoloader)

```
require __DIR__ . '/vendor/autoload.php';
use PhpSlugger\PhpSlugger;

$phpSlugger = new PhpSlugger();
echo $phpSlugger->slugit('∆ € $ Þ λ  I am A web Developer'); // delta-euro-dollor-l-i-am-a-web-developer
```

\##support

- [jquery Slug Plugin text2slug](https://github.com/afshinpersian/text-to-slug)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3102d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/337aa0e99cc065720fd88a38d4db0051accb4190d84370c5962305283af58825?d=identicon)[afshinpersian](/maintainers/afshinpersian)

---

Top Contributors

[![afshinakhgar](https://avatars.githubusercontent.com/u/2629049?v=4)](https://github.com/afshinakhgar "afshinakhgar (8 commits)")

---

Tags

phpphp7replace-textslugslug-generatorslugbuildersluggablesluggerslugificationslugifyslugs

### Embed Badge

![Health badge](/badges/afshinpersian-phpslugger/health.svg)

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

###  Alternatives

[georgringer/page_speed

Performance &amp; Usability are important to any site. Check every page for it and know how the site can be improved.

168.1k](/packages/georgringer-page-speed)

PHPackages © 2026

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