PHPackages                             marcohern/slugifier - 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. marcohern/slugifier

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

marcohern/slugifier
===================

Slugify your life

1.0.2(6y ago)08PHP

Since Jul 22Pushed 6y agoCompare

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

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

marcohern/slugifier
===================

[](#marcohernslugifier)

Slug management for Laravel. *marcohern/slugifier* is not another slug generator (there are plenty of those), it manages slugs by keeping record of whether slugs are unique, and keep a record of repeated slugs with an index.

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

[](#installation)

Install using composer:

```
$ composer require marcohern/slugifier
```

Run migrations to include the slugifier table.

```
$ php artisan migrate
```

Use the Slugifier management library.

```
use Marcohern\Slugifier\Lib\Slugifier;
```

build the slugifier.

```
$slugifier = new Slugifier();
```

you are all set to use the slugifier methods.

slugify
-------

[](#slugify)

It slugifies, by calling Laravel's standard **str\_slug** helper function.

```
echo $slugifier->slugify('Death Stranding');
//output: death-stranding
```

check
-----

[](#check)

Converts the source into a slug and verifies it's status in the database: if it being used, and it's sequence.

```
$result = $slugifier->check('Death Stranding','Games');
/*
$result == [
  'entity' => 'games',
  'slug' => 'death-stranding',
  'sequence' => 0
]
*/
```

store
-----

[](#store)

Same as **check** except it also increments the sequience by 1. Calling it more than once causes the sequence to increase each time.

```
$result = $slugifier->store('Death Stranding','Games');
/* first time
$result == [
  'entity' => 'games',
  'slug' => 'death-stranding',
  'sequence' => 0
]
*/

$result = $slugifier->store('Death Stranding','Games');
/* second time
$result == [
  'entity' => 'games',
  'slug' => 'death-stranding-1',
  'sequence' => 1
]
*/
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

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

Every ~16 days

Total

3

Last Release

2450d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/14657206deab9b9290ad86937ff1e425aced078bc4d91c35abde6ff14cad20a2?d=identicon)[marcohern](/maintainers/marcohern)

---

Top Contributors

[![marcohern](https://avatars.githubusercontent.com/u/5376517?v=4)](https://github.com/marcohern "marcohern (28 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/marcohern-slugifier/health.svg)

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

PHPackages © 2026

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