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

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

ashleydawson/slugify
====================

Lightweight slugify library

1.0.1(11y ago)014.9k—0%1MITPHPPHP &gt;=5.3.3

Since Aug 12Pushed 11y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Slugify
=======

[](#slugify)

[![Build Status](https://camo.githubusercontent.com/735b8ca59233d72cf6a346cf0286f2421b0afea45d90dba8fa4f69dbb1a5e055/68747470733a2f2f7472617669732d63692e6f72672f4173686c6579446177736f6e2f536c75676966792e737667)](https://travis-ci.org/AshleyDawson/Slugify)

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

[](#installation)

You can install Slugify via Composer. To do that, simply require the package in your composer.json file like so:

```
{
    "require": {
        "ashleydawson/slugify": "~1.0"
    }
}
```

Then run composer update to install the package.

Basic Usage
-----------

[](#basic-usage)

Using slugify is easy - simply instantiate the slugifier service class and call the slugify method:

```
require_once __DIR__ . '/vendor/autoload.php';

use AshleyDawson\Slugify\Slugifier;

$slugifier = new Slugifier();

$text = $slugifier->slugify('Hello World');

// The value of $text will be "hello-world"
echo $text;
```

If you'd like to change the delimiter used, simply pass it as the second argument to the slugify method:

```
require_once __DIR__ . '/vendor/autoload.php';

use AshleyDawson\Slugify\Slugifier;

$slugifier = new Slugifier();

$text = $slugifier->slugify('Hello World', '_');

// The value of $text will be "hello_world"
echo $text;
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

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

Every ~267 days

Total

2

Last Release

4022d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/958ec06d53fff9021d93c8728740d74bf348a3ad22a4fb22ef6c1de9ee7f4f7a?d=identicon)[AshleyDawson](/maintainers/AshleyDawson)

---

Top Contributors

[![AshleyDawson](https://avatars.githubusercontent.com/u/1968942?v=4)](https://github.com/AshleyDawson "AshleyDawson (7 commits)")[![ajdaw](https://avatars.githubusercontent.com/u/205369218?v=4)](https://github.com/ajdaw "ajdaw (6 commits)")

---

Tags

slugslugifyslugifier

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[jbroadway/urlify

A fast PHP slug generator and transliteration library that converts non-ascii characters for use in URLs.

6737.4M62](/packages/jbroadway-urlify)[ausi/slug-generator

Slug Generator

8002.2M22](/packages/ausi-slug-generator)[keyvanakbary/slugifier

A full-featured, simple, clean and pure functional implementation for creating slugs

68187.9k4](/packages/keyvanakbary-slugifier)[voku/urlify

PHP port of URLify.js from the Django project. Transliterates non-ascii characters for use in URLs.

254.1M7](/packages/voku-urlify)[symfony-cmf/slugifier-api

Provides a basic slugifier interface to transform text into strings suitable for URLs

281.7M5](/packages/symfony-cmf-slugifier-api)

PHPackages © 2026

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