PHPackages                             laravelista/illaoi - 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. laravelista/illaoi

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

laravelista/illaoi
==================

Generates slugs for Laravel.

2.0.0(10y ago)2540[1 issues](https://github.com/laravelista/Illaoi/issues)MITPHPPHP &gt;=5.5.9

Since Nov 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/laravelista/Illaoi)[ Packagist](https://packagist.org/packages/laravelista/illaoi)[ RSS](/packages/laravelista-illaoi/feed)WikiDiscussions master Synced 2mo ago

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

Illaoi
======

[](#illaoi)

[![Build Status](https://camo.githubusercontent.com/e1ccc7b325d72ced000a5ccc194a038d90f5e00757f90c2e2ce81224d0ed6eea/68747470733a2f2f7472617669732d63692e6f72672f6c61726176656c697374612f496c6c616f692e737667)](https://travis-ci.org/laravelista/Illaoi) [![Latest Stable Version](https://camo.githubusercontent.com/bf48b05a6004615bc4a7a30c6e2ba38599ebf4af21c5d0881e0b2c19646ed0ed/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c697374612f696c6c616f692f762f737461626c65)](https://packagist.org/packages/laravelista/illaoi) [![Total Downloads](https://camo.githubusercontent.com/93f65b3007b3eb3020c37eb888353b43db6b67107350beeceb3ef19e98010921/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c697374612f696c6c616f692f646f776e6c6f616473)](https://packagist.org/packages/laravelista/illaoi) [![Latest Unstable Version](https://camo.githubusercontent.com/cee679740146632460e175054cfc0dc1cdf1abca1674dba2c68cf89aa0978a00/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c697374612f696c6c616f692f762f756e737461626c65)](https://packagist.org/packages/laravelista/illaoi) [![License](https://camo.githubusercontent.com/c667e637e6a0c94147a4bd643cfc19e11caa8406d71f991968ec347e9e8ae81c/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c697374612f696c6c616f692f6c6963656e7365)](https://packagist.org/packages/laravelista/illaoi)

Generates slugs for Laravel.

**Has support for croatian characters čćžšđ.**

- Can generate unique slugs for database

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

[](#installation)

First, pull in the package through Composer.

```
"require": {
    "laravelista/illaoi": "~2.0"
}
```

And then, if using Laravel 5.1, include the service provider within `config/app.php`.

```
'providers' => [
    ...
    Laravelista\Illaoi\IllaoiServiceProvider::class
];
```

And if you want you can add a facade alias to this same file at the bottom:

```
'aliases' => [
    ...
    'Illaoi' => Laravelista\Illaoi\Facades\Illaoi::class
];
```

API
---

[](#api)

#### `generate($text)`

[](#generatetext)

Just pass it some trivial text and expect slug in return.

```
Illaoi::generate('This is a post')

// returns: this-is-a-post
```

#### `generateUnique($text, Model $model)`

[](#generateuniquetext-model-model)

Use this when you want to create a unique slug for a model.

It searches for generated slug in Model by `slug` and if found increments last number by 1 starting from number 2.

eg. this-is-a-post, this-is-a-post-2, this-is-a-post-3

##### Creating new Model

[](#creating-new-model)

```
Illaoi::generateUnique('This is a post', new App\Post);

// returns: this-is-a-post
```

##### Updating Model

[](#updating-model)

```
$post = App\Post::create([
    'id' => 1,
    'title' => 'This is a post,
    'seo_slug' => 'this-is-a-post'
]);

Illaoi::searchBy('seo_slug')
    ->ignoreId(1)
    ->generateUnique('This is a post', new App\Post);

// returns: this-is-a-post

Illaoi::generateUnique('This is a post', new App\Post);

// returns: this-is-a-post-2

Illaoi::setIteration(1)->generateUnique('This is a post', new App\Post);

// returns: this-is-a-post-1
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

3814d ago

Major Versions

1.1.0 → 2.0.02015-12-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/40ea19c312cecdbaa94b6961d083acc981cda402871f0b53b5baa493c0c7e775?d=identicon)[mabasic](/maintainers/mabasic)

---

Top Contributors

[![mabasic](https://avatars.githubusercontent.com/u/1839930?v=4)](https://github.com/mabasic "mabasic (7 commits)")

---

Tags

sluglaravelhelper

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laravelista-illaoi/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[glhd/special

1929.4k](/packages/glhd-special)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)

PHPackages © 2026

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