PHPackages                             oodle/urlify - 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. oodle/urlify

ActiveLibrary

oodle/urlify
============

urlify - a library for creating url-safe slugs from text

08.8kPHP

Since Nov 30Pushed 12y ago2 watchersCompare

[ Source](https://github.com/oodle/urlify)[ Packagist](https://packagist.org/packages/oodle/urlify)[ RSS](/packages/oodle-urlify/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Urlify
======

[](#urlify)

Urlify is a library for creating url-safe slugs from text. It will also down-convert (Romanize) foreign ascii characters into plain ascii.

Installation:
-------------

[](#installation)

Add this line to your composer.json "require" section:

### composer.json

[](#composerjson)

```
    "require": {
       ...
       "oodle/urlify": "*"
```

Usage:
------

[](#usage)

```
Urlify\Urlify::urlify($string, $separator = '-', $ampersand = null)
```

Examples:
---------

[](#examples)

use Urlify\\Urlify;

echo Urlify::urlify('blah blah blah'); // Should output "blah-blah-blah"

echo Urlify::urlify('This is a sentence.'); // Should output "This-is-a-sentence"

echo Urlify::urlify('kraüt'); // Should output "kraut"

echo Urlify::urlify('what ever', '.'); // Should output "what.ever"

echo Urlify::urlify('blah&amp;blah'); // Should output "blah-blah"

echo Urlify::urlify('blah&amp;blah', '-', 'and'); // Should output "blah-and-blah"

```

Notes:
------
Please note that the string should be in ascii or iso-8859-1 in order for Romanization to work

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

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/f05a1e018633083f2618b189473318e14d14d921216188d36c52e582244340c7?d=identicon)[mmucklo](/maintainers/mmucklo)

---

Top Contributors

[![mmucklo](https://avatars.githubusercontent.com/u/245122?v=4)](https://github.com/mmucklo "mmucklo (1 commits)")

### Embed Badge

![Health badge](/badges/oodle-urlify/health.svg)

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

PHPackages © 2026

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