PHPackages                             webpatser/laravel-sanitize - 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. webpatser/laravel-sanitize

AbandonedArchivedLaravel-library[Utility &amp; Helpers](/categories/utility)

webpatser/laravel-sanitize
==========================

Laravel package to sanatize a string for use as URL's. It uses the PHP Normalizer class and fills whitespace with dashes.

1.0(12y ago)838.2k↓45%2[2 issues](https://github.com/webpatser/laravel-sanitize/issues)MITPHPPHP &gt;=5.3.0

Since Nov 1Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

Laravel Sanitize [![Build Status](https://camo.githubusercontent.com/b530ddeeea17edc77d61e4eb4e8fd538de8119ddb511ab8d171770e71730bf82/68747470733a2f2f7472617669732d63692e6f72672f7765627061747365722f6c61726176656c2d73616e6974697a652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/webpatser/laravel-sanitize)
==============================================================================================================================================================================================================================================================================================================================

[](#laravel-sanitize-)

Laravel package to sanitize a string for use in URL's

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

[](#installation)

Add `webpatser/laravel-sanitize` to `composer.json`.

```
"webpatser/laravel-sanitize": "dev-master"

```

Run `composer update` to get the latest version of Sanitize.

Edit `app/config/app.php` and add the `alias`

```
'aliases' => array(
    'Sanitize' => 'Webpatser\Sanitize\Sanitize',
)

```

Usage
-----

[](#usage)

```
Sanitize::string('Sanitize me please!'); // sanitize-me-please

```

Notes
-----

[](#notes)

It uses the PHP Normalizer class and does some extra magic, and wraps it in the Laravel 4 grand scheme of things.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4581d ago

### Community

Maintainers

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

---

Top Contributors

[![webpatser](https://avatars.githubusercontent.com/u/25720?v=4)](https://github.com/webpatser "webpatser (16 commits)")

---

Tags

laravel sanitize URL

### Embed Badge

![Health badge](/badges/webpatser-laravel-sanitize/health.svg)

```
[![Health](https://phpackages.com/badges/webpatser-laravel-sanitize/health.svg)](https://phpackages.com/packages/webpatser-laravel-sanitize)
```

PHPackages © 2026

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