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

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

moox/slug
=========

This is my package slug

5.0.12(2mo ago)5197↓50%1MITPHP

Since May 20Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/mooxphp/slug)[ Packagist](https://packagist.org/packages/moox/slug)[ Docs](https://moox.org/)[ GitHub Sponsors](https://github.com/mooxphp)[ RSS](/packages/moox-slug/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (9)Used By (1)

[![Moox Slug](https://github.com/mooxphp/moox/raw/main/art/banner/slug-package.jpg)](https://github.com/mooxphp/moox/raw/main/art/banner/slug-package.jpg)

Moox Slug
=========

[](#moox-slug)

This is my package slug

Quick Installation
------------------

[](#quick-installation)

These two commmands are all you need to install the package:

```
composer require moox/slug
php artisan slug:install
```

Curious what the install command does? See manual installation below.

Using the Template
------------------

[](#using-the-template)

1. Go to
2. Press the `Use this template` button
3. Create a new repository based on the template
4. Clone the repository locally
5. Run `php build.php`in the repo's directory and follow the steps

After building the package, you can push the changes to GitHub and create an installable package on Packagist.org. Don't forget to adjust the README to your composer namespace.

### Config

[](#config)

After that the Resource is highly configurable.

#### Tabs and Translation

[](#tabs-and-translation)

Moox Core features like Dynamic Tabs and Translatable Config. See the config file for more details, but as a quick example:

```
            /*
            |--------------------------------------------------------------------------
            | Tabs
            |--------------------------------------------------------------------------
            |
            | Define the tabs for the Resource table. They are optional, but
            | pretty awesome to filter the table by certain values.
            | You may simply do a 'tabs' => [], to disable them.
            |
            */

            'tabs' => [
                'all' => [
                    'label' => 'trans//core::core.all',
                    'icon' => 'gmdi-filter-list',
                    'query' => [
                        [
                            'field' => 'deleted_at',
                            'operator' => '=',
                            'value' => null,
                        ],
                    ],
                ],
                'published' => [
                    'label' => 'trans//core::core.published',
                    'icon' => 'gmdi-check-circle',
                    'query' => [
                        [
                            'field' => 'publish_at',
                            'operator' => '',
                            'value' => function () {
                                return now();
                            },
                        ],
                        [
                            'field' => 'deleted_at',
                            'operator' => '=',
                            'value' => null,
                        ],
                    ],
                ],
                'draft' => [
                    'label' => 'trans//core::core.draft',
                    'icon' => 'gmdi-text-snippet',
                    'query' => [
                        [
                            'field' => 'publish_at',
                            'operator' => '=',
                            'value' => null,
                        ],
                        [
                            'field' => 'deleted_at',
                            'operator' => '=',
                            'value' => null,
                        ],
                    ],
                ],
                'deleted' => [
                    'label' => 'trans//core::core.deleted',
                    'icon' => 'gmdi-delete',
                    'query' => [
                        [
                            'field' => 'deleted_at',
                            'operator' => '!=',
                            'value' => null,
                        ],
                    ],
                ],
            ],
        ],
```

All options for Tabs are explained in [Moox Core docs](https://github.com/mooxphp/core/blob/main/README.md#dynamic-tabs).

#### Item Types

[](#item-types)

The item also support 'item' types, means you are able to configure selectable types for your Entity. By default, we provide "Post" and "Page" as example. If you don't want to use types, just empty the array and the field and column become invisible.

```
    /*
    |--------------------------------------------------------------------------
    | Item Types
    |--------------------------------------------------------------------------
    |
    | This array contains the types of items entities. You can delete
    | the types you don't need and add new ones. If you don't need
    | types, you can empty this array like this: 'types' => [],
    |
    */

    'types' => [
        'post' => 'Post',
        'page' => 'Page',
    ],
```

#### Author Model

[](#author-model)

You can configure the user model used for displaying Authors. By default it is tied to App User:

```
    /*
    |--------------------------------------------------------------------------
    | Author Model
    |--------------------------------------------------------------------------
    |
    | This sets the user model that can be used as author. It should be an
    | authenticatable model and support the morph relationship.
    | It should have fields similar to Moox User or WpUser.
    |
    */

    'author_model' => \App\Models\User::class,
```

You may probably use Moox User

```
    'author_model' => \Moox\User\Models\User::class,
```

or Moox Press User instead:

```
    'author_model' => \Moox\Press\Models\WpUser::class,
```

Manual Installation
-------------------

[](#manual-installation)

Instead of using the install-command `php artisan slug:install` you are able to install this package manually step by step:

```
// Publish and run the migrations:
php artisan vendor:publish --tag="slug-migrations"
php artisan migrate

// Publish the config file with:
php artisan vendor:publish --tag="slug-config"
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](https://github.com/mooxphp/moox/security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance83

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

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

Recently: every ~53 days

Total

8

Last Release

87d ago

Major Versions

0.3.2 → 4.0.0-beta.22025-07-10

4.0.0-beta.3 → 5.0.02026-02-20

### Community

Maintainers

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

---

Top Contributors

[![mooxbot](https://avatars.githubusercontent.com/u/106848579?v=4)](https://github.com/mooxbot "mooxbot (16 commits)")

---

Tags

filamentlaravelpermalinksluglaravellaravel-packagefilamentfilament-plugin

### Embed Badge

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

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

###  Alternatives

[wallacemartinss/filament-icon-picker

A beautiful icon picker component for Filament v5 using blade-ui-kit/blade-icons

467.1k17](/packages/wallacemartinss-filament-icon-picker)[fauzie811/filament-list-entry

List Entry for Filament Infolist

1517.4k](/packages/fauzie811-filament-list-entry)[howdu/filament-record-switcher

Resource level navigation with search

1512.5k](/packages/howdu-filament-record-switcher)[wsmallnews/filament-nestedset

Filament nestedset tree builder powered by kalnoy/nestedset with Filament v4 and v5 support

163.0k8](/packages/wsmallnews-filament-nestedset)

PHPackages © 2026

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