PHPackages                             slouma2000/slugify - 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. slouma2000/slugify

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

slouma2000/slugify
==================

Slug the part of an URL which identifies a page using human-readable keywords

07PHP

Since May 1Pushed 12y agoCompare

[ Source](https://github.com/slouma2000/slugify)[ Packagist](https://packagist.org/packages/slouma2000/slugify)[ RSS](/packages/slouma2000-slugify/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

slouma2000/slugify
==================

[](#slouma2000slugify)

> Converts a string into a slug.

Features
--------

[](#features)

- Removes all special characters from a string.
- No external dependencies.
- PSR-4 compatible.
- Compatible with PHP &gt;= 5.3.3.

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

[](#installation)

Usage
-----

[](#usage)

Generate a slug:

```
use slouma2000\Slugify\Slugify;

$slugify = new Slugify();
echo $slugify->slugify('Hello World!'); // hello-world
```

You can also change the seperator used by `Slugify`:

```
echo $slugify->slugify('Hello World!', '_'); // hello_world
```

Changelog
---------

[](#changelog)

### Version 0.1 (01 Mai 2014)

[](#version-01-01-mai-2014)

- First Version

Authors
-------

[](#authors)

- [Slim Ouichtati](https://github.com/slouma2000)

License
-------

[](#license)

The MIT License (MIT)

Copyright (c) 2012-2014 Florian Eckerstorfer

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b3be7b27d64920c5237b071c3c8c14d651066ddb5ba1d8d36973ce935b4f153d?d=identicon)[slouma2000](/maintainers/slouma2000)

---

Top Contributors

[![Midat](https://avatars.githubusercontent.com/u/29410861?v=4)](https://github.com/Midat "Midat (2 commits)")

### Embed Badge

![Health badge](/badges/slouma2000-slugify/health.svg)

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

PHPackages © 2026

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