PHPackages                             raynl/generate-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. raynl/generate-slug

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

raynl/generate-slug
===================

Generate a unique slug on a collection

1.1.1(4y ago)0477MITPHPPHP ^7.3|^8.0

Since Jun 1Pushed 4y agoCompare

[ Source](https://github.com/Ray-nl/slug-generator)[ Packagist](https://packagist.org/packages/raynl/generate-slug)[ Docs](https://github.com/Ray-nl/slug-generator)[ RSS](/packages/raynl-generate-slug/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (3)Versions (6)Used By (0)

Slug generator for Statamic
===========================

[](#slug-generator-for-statamic)

---

If you have a entry in a collection with the possibilty to have a duplicate slug, then you can call the generateslug. If the slug 'car' allready exists in the products collection it wil return 'car-1'

```
Slug::generateSlug('products', 'car')

```

If you want to customize the seperator add a third parameter that the seperator is.

```
Slug::generateSlug('products', 'car', '.')

```

It returns now "car.1"

As fourth parameter you can add the starting number.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 73.9% 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 ~0 days

Total

3

Last Release

1803d ago

PHP version history (2 changes)1.1PHP ^7.3

1.1.1PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e7b3d9761cee07faf0ecf78291d657601fbd6c53a98de3ddf434371eeb0cf39?d=identicon)[raydotnl](/maintainers/raydotnl)

---

Top Contributors

[![rolinbos](https://avatars.githubusercontent.com/u/34242298?v=4)](https://github.com/rolinbos "rolinbos (17 commits)")[![raydotnl](https://avatars.githubusercontent.com/u/31897622?v=4)](https://github.com/raydotnl "raydotnl (5 commits)")[![SjoerdRutten](https://avatars.githubusercontent.com/u/85221558?v=4)](https://github.com/SjoerdRutten "SjoerdRutten (1 commits)")

---

Tags

laravelraynlgenerate slug

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/raynl-generate-slug/health.svg)

```
[![Health](https://phpackages.com/badges/raynl-generate-slug/health.svg)](https://phpackages.com/packages/raynl-generate-slug)
```

###  Alternatives

[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

2381.5k10](/packages/marcorieser-statamic-livewire)[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)[alt-design/alt-sitemap

Alt Sitemap addon, create a sitemap from Statamic entries

1219.0k](/packages/alt-design-alt-sitemap)[spatie/statamic-health

Check the health of your Statamic app

115.3k](/packages/spatie-statamic-health)

PHPackages © 2026

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