PHPackages                             pishran/laravel-persian-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. [Database &amp; ORM](/categories/database)
4. /
5. pishran/laravel-persian-slug

ActiveLibrary[Database &amp; ORM](/categories/database)

pishran/laravel-persian-slug
============================

Creates Persian slugs for Eloquent models.

v2.2.2(3y ago)5527.6k—6.7%6[2 PRs](https://github.com/pishran/laravel-persian-slug/pulls)1MITPHPPHP ^7.3|^8.0

Since Jan 9Pushed 2y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (12)Used By (1)

Laravel Persian Slug
====================

[](#laravel-persian-slug)

ایجاد اسلاگ استاندارد و فارسی در مدل های لاراول

```
use Illuminate\Database\Eloquent\Model;
use Pishran\LaravelPersianSlug\HasPersianSlug;
use Spatie\Sluggable\SlugOptions;

class Post extends Model
{
    use HasPersianSlug;

    public function getSlugOptions(): SlugOptions
    {
        return SlugOptions::create()
            ->generateSlugsFrom('title')
            ->saveSlugsTo('slug');
    }
}
```

اطلاعات بیشتر در مورد کلاس SlugOptions:

روش نصب
-------

[](#روش-نصب)

برای نصب و استفاده از این پکیج می توانید از کامپوزر استفاده کنید:

`composer require pishran/laravel-persian-slug`

نسخه های قدیمی تر
-----------------

[](#نسخه-های-قدیمی-تر)

برای لاوارل ۸ به بعد از آخرین نسخه این پکیج و برای لاراول ۷ از نسخه ۱.۴ استفاده کنید.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 88.2% 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 ~146 days

Recently: every ~213 days

Total

11

Last Release

1224d ago

Major Versions

v1.4 → v2.02020-09-10

PHP version history (4 changes)v1.0.0PHP ^7.2

v2.0PHP ^7.3

v2.1PHP ^7.3|^8.0

v2.2PHP ^7.3|^8.0|^9.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8607021?v=4)[Farid Aghili](/maintainers/FaridAghili)[@FaridAghili](https://github.com/FaridAghili)

---

Top Contributors

[![FaridAghili](https://avatars.githubusercontent.com/u/8607021?v=4)](https://github.com/FaridAghili "FaridAghili (15 commits)")[![alisalehi1380](https://avatars.githubusercontent.com/u/111766206?v=4)](https://github.com/alisalehi1380 "alisalehi1380 (1 commits)")[![soheilrt](https://avatars.githubusercontent.com/u/17524113?v=4)](https://github.com/soheilrt "soheilrt (1 commits)")

---

Tags

eloquentlaravelpersianphpslugstringsluglaraveleloquentpersian

### Embed Badge

![Health badge](/badges/pishran-laravel-persian-slug/health.svg)

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

###  Alternatives

[cviebrock/eloquent-sluggable

Easy creation of slugs for your Eloquent models in Laravel

4.0k13.6M253](/packages/cviebrock-eloquent-sluggable)[matteoggl/linnaeus

A package to create readable, random slugs for Eloquent models from animal names and adjectives.

226.7k](/packages/matteoggl-linnaeus)[alibayat/laravel-categorizable

Implementing Nested-structure Hierarchy Categories system for Eloquent models.

602.7k](/packages/alibayat-laravel-categorizable)

PHPackages © 2026

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