PHPackages                             tarekhasan/laravel-auto-slug - 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. tarekhasan/laravel-auto-slug

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

tarekhasan/laravel-auto-slug
============================

Automatically generate and manage unique slugs for Eloquent models

v1.0.0(1y ago)01MITPHP

Since Apr 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tarekhasan175/laravel-auto-slug)[ Packagist](https://packagist.org/packages/tarekhasan/laravel-auto-slug)[ RSS](/packages/tarekhasan-laravel-auto-slug/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

🚀 Laravel Auto Slug
===================

[](#-laravel-auto-slug)

**Laravel Auto Slug** is a lightweight, easy-to-use Laravel package that automatically generates and manages unique slugs for your Eloquent models.

Perfect for blog posts, products, or any content type that needs clean, human-readable, SEO-friendly URLs.

---

📦 Installation
--------------

[](#-installation)

```
composer require tarekhasan/laravel-auto-slug

---

## ⚙️ Usage

```use Illuminate\Database\Eloquent\Model;
use Tarekhasan\LaravelAutoSlug\Traits\AutoSlug;

class Post extends Model
{
    use AutoSlug;

    protected static function booted()
    {
        static::bootAutoSlug('title');
    }
}
---

## 🧠 Features
✅ Automatically generates slugs for any Eloquent model field
✅ Ensures uniqueness even if titles are duplicated
✅ Simple and expressive syntax
✅ Fully customizable slug source field
✅ Works out-of-the-box with Laravel **8, 9, 10, and 11**

---

## 🧪 Coming Soon
- Support for localized slugs
- Optional slug column name configuration
- Slug regeneration control on updates

---

## 📄 License
Released under the [MIT license](LICENSE).
Made with ❤️ by [Tarek Hasan](mailto:tarekhn175@gmail.com)

---

## 🌟 Contributing
PRs and stars are welcome!
If you find this package useful, consider giving it a ⭐️ on [GitHub](https://github.com/tarekhn/laravel-auto-slug).
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance48

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

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

389d ago

### Community

Maintainers

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

---

Top Contributors

[![tarekhasan175](https://avatars.githubusercontent.com/u/110529388?v=4)](https://github.com/tarekhasan175 "tarekhasan175 (3 commits)")[![tareksmartsoft](https://avatars.githubusercontent.com/u/180068379?v=4)](https://github.com/tareksmartsoft "tareksmartsoft (1 commits)")

### Embed Badge

![Health badge](/badges/tarekhasan-laravel-auto-slug/health.svg)

```
[![Health](https://phpackages.com/badges/tarekhasan-laravel-auto-slug/health.svg)](https://phpackages.com/packages/tarekhasan-laravel-auto-slug)
```

###  Alternatives

[fof/reactions

Reactions for Flarum

2268.0k6](/packages/fof-reactions)[spatie/mjml-sidecar

Compile MJML to HTML using Sidecar

1342.6k](/packages/spatie-mjml-sidecar)

PHPackages © 2026

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