PHPackages                             actengage/sluggable - 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. actengage/sluggable

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

actengage/sluggable
===================

A simple trait to ensure Laravel models have slugs.

v7.0.1(2mo ago)01.7k↓50%1MITPHPPHP ^8.2

Since Mar 7Pushed 9mo agoCompare

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

READMEChangelogDependencies (14)Versions (31)Used By (1)

Sluggable
=========

[](#sluggable)

A simple package for managing "slugs" to Eloquent models. Sluggable is a trait for Eloquent models to ensure a slug exists for the model, and saved it in a column

### Installation

[](#installation)

```
composer require actengage/sluggable

```

### Implementation

[](#implementation)

To implement Sluggable, you just need to assign the `Sluggable` trait to the model.

```
    namespace App\Page;

    use Actenage\Sluggable\Sluggable;
    use Illuminate\Database\Eloquent\Model;

    class Page extends Model {

        use Sluggable;

        protected $fillable = [
            'title', 'slug'
        ];

    }

```

### Basic Example

[](#basic-example)

```
$page = Page::create([
    'title' => 'This is some title'
]);

dd($page->slug); // 'this-is-some-page-title'

```

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance71

Regular maintenance activity

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 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 ~116 days

Recently: every ~153 days

Total

23

Last Release

62d ago

Major Versions

v2.0.0 → v3.0.02022-08-05

v3.0.2 → v4.0.02023-07-11

v4.1.0 → v5.0.02024-07-03

v5.0.0 → v6.0.02024-07-11

v6.1.1 → v7.0.02026-03-17

PHP version history (6 changes)0.1.0PHP &gt;=7.1

v1.1.0PHP &gt;=7.1|^7.2.5

v1.2.0PHP &gt;=7.0

v2.0.0PHP ^8.0

v4.0.0PHP ^8.1

v6.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/3751e573441701b44fab996c721a3249349c97f023d99986c2f6d646947727e5?d=identicon)[actengage](/maintainers/actengage)

---

Top Contributors

[![actengage](https://avatars.githubusercontent.com/u/33735047?v=4)](https://github.com/actengage "actengage (5 commits)")

---

Tags

sluggableslugs

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/actengage-sluggable/health.svg)

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

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[jbroadway/urlify

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

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

Helps you managing the URL slugs of your TYPO3 site

2965.7k](/packages/koehlersimon-slug)[josezenem/laravel-slugidable

A package for Laravel that creates slugs for Eloquent models based on title and ID

1159.5k](/packages/josezenem-laravel-slugidable)

PHPackages © 2026

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